summaryrefslogtreecommitdiff
path: root/lisp/help.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-11-29 20:05:46 +0000
committerGerd Moellmann <gerd@gnu.org>2000-11-29 20:05:46 +0000
commit0383ed602c21f9f7c619ef0538bb53433ceabc17 (patch)
treee9da5d04a9a6835056892019666c4877a2511afb /lisp/help.el
parentc795794783118024f9733d11a7040d8de8a31591 (diff)
downloademacs-0383ed602c21f9f7c619ef0538bb53433ceabc17.tar.gz
(describe-function-1): Regexp-quote function name
when used as part of a regexp.
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el
index b3e726ba27c..2690cdc9c04 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -744,7 +744,7 @@ It can also be nil, if the definition is not associated with any file."
(name (progn
(string-match " \\([^ ]+\\)>$" rep)
(match-string 1 rep))))
- (if (looking-at (format "(%s[ )]" name))
+ (if (looking-at (format "(%s[ )]" (regexp-quote name)))
(let ((start (point-marker)))
(goto-char (point-min))
(forward-paragraph)