diff options
author | Andreas Schwab <schwab@suse.de> | 2003-08-02 20:36:51 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2003-08-02 20:36:51 +0000 |
commit | 80f5d2efec87d768484439bb58d5b0b0253f108d (patch) | |
tree | b01fb808d63ebb33f8be9c497ecb68364e30096a /lisp/apropos.el | |
parent | cbc72cf5cfbbcd7a0a4969f0e73266e43f2b8a98 (diff) | |
download | emacs-80f5d2efec87d768484439bb58d5b0b0253f108d.tar.gz |
(apropos-words-to-regexp): Only add `wild' if
`words' has more than one member.
Diffstat (limited to 'lisp/apropos.el')
-rw-r--r-- | lisp/apropos.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el index 74b0f3fa838..677c43b756d 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el @@ -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 "\\|") "\\)") ""))) |