diff options
| author | Andreas Schwab | 2003-08-02 20:36:51 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2003-08-02 20:36:51 +0000 |
| commit | 80f5d2efec87d768484439bb58d5b0b0253f108d (patch) | |
| tree | b01fb808d63ebb33f8be9c497ecb68364e30096a | |
| parent | cbc72cf5cfbbcd7a0a4969f0e73266e43f2b8a98 (diff) | |
| download | emacs-80f5d2efec87d768484439bb58d5b0b0253f108d.tar.gz emacs-80f5d2efec87d768484439bb58d5b0b0253f108d.zip | |
(apropos-words-to-regexp): Only add `wild' if
`words' has more than one member.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/apropos.el | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 78643a290b2..28146912eca 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2003-08-02 Andreas Schwab <schwab@suse.de> | 1 | 2003-08-02 Andreas Schwab <schwab@suse.de> |
| 2 | 2 | ||
| 3 | * apropos.el (apropos-words-to-regexp): Only add `wild' if `words' | ||
| 4 | has more than one member. | ||
| 5 | |||
| 3 | * progmodes/sh-script.el (sh-mode): Don't set mode-class property. | 6 | * progmodes/sh-script.el (sh-mode): Don't set mode-class property. |
| 4 | 7 | ||
| 5 | 2003-08-01 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 8 | 2003-08-01 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
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 @@ | |||
| 1 | ;;; apropos.el --- apropos commands for users and programmers | 1 | ;;; apropos.el --- apropos commands for users and programmers |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1989, 1994, 1995, 2001, 2002 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1989, 1994, 1995, 2001, 2002, 2003 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Joe Wells <jbw@bigbird.bu.edu> | 5 | ;; Author: Joe Wells <jbw@bigbird.bu.edu> |
| 6 | ;; Rewritten: Daniel Pfeiffer <occitan@esperanto.org> | 6 | ;; Rewritten: Daniel Pfeiffer <occitan@esperanto.org> |
| @@ -248,9 +248,10 @@ before finding a label." | |||
| 248 | "Make regexp matching any two of the words in WORDS." | 248 | "Make regexp matching any two of the words in WORDS." |
| 249 | (concat "\\(" | 249 | (concat "\\(" |
| 250 | (mapconcat 'identity words "\\|") | 250 | (mapconcat 'identity words "\\|") |
| 251 | "\\)" wild | 251 | "\\)" |
| 252 | (if (cdr words) | 252 | (if (cdr words) |
| 253 | (concat "\\(" | 253 | (concat wild |
| 254 | "\\(" | ||
| 254 | (mapconcat 'identity words "\\|") | 255 | (mapconcat 'identity words "\\|") |
| 255 | "\\)") | 256 | "\\)") |
| 256 | ""))) | 257 | ""))) |