Mercurial > emacs
diff lisp/help.el @ 34022:84d5cf98a5a0
(describe-function-1): Regexp-quote function name
when used as part of a regexp.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 29 Nov 2000 20:05:18 +0000 |
parents | e28e403dd69f |
children | 610ac8a2b8a5 |
line wrap: on
line diff
--- a/lisp/help.el Wed Nov 29 19:22:47 2000 +0000 +++ b/lisp/help.el Wed Nov 29 20:05:18 2000 +0000 @@ -744,7 +744,7 @@ (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)