]> git.eshelyaron.com Git - emacs.git/commitdiff
(Info-follow-reference): Use regexp-quote.
authorRichard M. Stallman <rms@gnu.org>
Wed, 23 Nov 1994 19:56:15 +0000 (19:56 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 23 Nov 1994 19:56:15 +0000 (19:56 +0000)
lisp/info.el

index 39f67b020c6b99dfc5fb0fb69a79311593a51526..7feaf6b1649990028911a1a91ae563868736fa7d 100644 (file)
@@ -828,7 +828,7 @@ NAME may be an abbreviation of the reference name."
           (list (if (equal input "")
                     default input)))
        (error "No cross-references in this node"))))
-  (let (target beg i (str (concat "\\*note " footnotename)))
+  (let (target beg i (str (concat "\\*note " (regexp-quote footnotename))))
     (while (setq i (string-match " " str i))
       (setq str (concat (substring str 0 i) "[ \t\n]+" (substring str (1+ i))))
       (setq i (+ i 6)))