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

index 595bb6cc9a1d643c790d0401ad5987b4dee364a9..01e4f22365622ef4ae7f83070216027ebb7b2f45 100644 (file)
@@ -3810,10 +3810,10 @@ 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)