2003-08-02 Andreas Schwab <schwab@suse.de>
+ * apropos.el (apropos-words-to-regexp): Only add `wild' if `words'
+ has more than one member.
+
* progmodes/sh-script.el (sh-mode): Don't set mode-class property.
2003-08-01 Vinicius Jose Latorre <viniciusjl@ig.com.br>
;;; apropos.el --- apropos commands for users and programmers
-;; Copyright (C) 1989, 1994, 1995, 2001, 2002 Free Software Foundation, Inc.
+;; Copyright (C) 1989, 1994, 1995, 2001, 2002, 2003 Free Software Foundation, Inc.
;; Author: Joe Wells <jbw@bigbird.bu.edu>
;; Rewritten: Daniel Pfeiffer <occitan@esperanto.org>
"Make regexp matching any two of the words in WORDS."
(concat "\\("
(mapconcat 'identity words "\\|")
- "\\)" wild
+ "\\)"
(if (cdr words)
- (concat "\\("
+ (concat wild
+ "\\("
(mapconcat 'identity words "\\|")
"\\)")
"")))