Mercurial > emacs
changeset 80494:52eeccd048ad
(woman2-TH): Quote argument to string-match.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Fri, 11 Apr 2008 02:27:28 +0000 |
parents | 4601f7347791 |
children | cfc9673219ec |
files | lisp/woman.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/woman.el Fri Apr 11 02:27:09 2008 +0000 +++ b/lisp/woman.el Fri Apr 11 02:27:28 2008 +0000 @@ -3810,10 +3810,10 @@ (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)