]> git.eshelyaron.com Git - emacs.git/commitdiff
(apropos-words-to-regexp): Only add `wild' if
authorAndreas Schwab <schwab@suse.de>
Sat, 2 Aug 2003 20:36:51 +0000 (20:36 +0000)
committerAndreas Schwab <schwab@suse.de>
Sat, 2 Aug 2003 20:36:51 +0000 (20:36 +0000)
`words' has more than one member.

lisp/ChangeLog
lisp/apropos.el

index 78643a290b28c9c2f42544e42a19b588aa928502..28146912ecaeea804fee108670df40eed6c72810 100644 (file)
@@ -1,5 +1,8 @@
 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>
index 74b0f3fa838aca6a1450d9a42766e53ea4be018f..677c43b756d61e9a64c1baf7fd579831bd131264 100644 (file)
@@ -1,6 +1,6 @@
 ;;; 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>
@@ -248,9 +248,10 @@ before finding a label."
   "Make regexp matching any two of the words in WORDS."
   (concat "\\("
          (mapconcat 'identity words "\\|")
-         "\\)" wild
+         "\\)"
          (if (cdr words)
-             (concat "\\("
+             (concat wild
+                     "\\("
                      (mapconcat 'identity words "\\|")
                      "\\)")
            "")))