changeset 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 213a832d6474
children d6585456bdd6
files lisp/help.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)