# HG changeset patch # User Chong Yidong # Date 1207880655 0 # Node ID e20062ee80fec107690fcc3d95f0c4bf50a56991 # Parent f2451ba59af53531f2abb1d0f214029db9b42803 (woman2-TH): Quote search string argument to string-match. diff -r f2451ba59af5 -r e20062ee80fe lisp/woman.el --- a/lisp/woman.el Fri Apr 11 02:23:57 2008 +0000 +++ b/lisp/woman.el Fri Apr 11 02:24:15 2008 +0000 @@ -3846,10 +3846,9 @@ (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)