]> git.eshelyaron.com Git - emacs.git/commitdiff
(woman2-TH): Quote search string argument to string-match.
authorChong Yidong <cyd@stupidchicken.com>
Fri, 11 Apr 2008 02:24:15 +0000 (02:24 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 11 Apr 2008 02:24:15 +0000 (02:24 +0000)
lisp/woman.el

index e46240884f83b4493ea73f2e553bf851ebe0ee93..9f47329fd3ba8b10497e5eb2bc3ef5b9621d2915 100644 (file)
@@ -3846,10 +3846,9 @@ v alters page foot left; m alters page head center.
       (insert " -- ")
       (woman-forward-arg 'unquote 'concat)
       ;; Delete repeated arguments:
-      (if (string-match (buffer-substring here (point))
+      (if (string-match (regexp-quote (buffer-substring here (point)))
                        (buffer-substring start here))
-         (delete-region here (point)))
-      ))
+         (delete-region here (point)))))
   ;; Embolden heading (point is at end of heading):
   (woman-set-face
    (save-excursion (beginning-of-line) (point)) (point) 'woman-bold)