diff options
| author | Chong Yidong | 2008-04-11 02:24:15 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-04-11 02:24:15 +0000 |
| commit | e1cd9b5b4ad0777c88337fe5abb37e5e4bb0adcc (patch) | |
| tree | a1c01565ad1e8f80892a3d9cd4938fa7948f3a75 | |
| parent | 0159b08c4e604dd0bf620180257923ff96d4ef65 (diff) | |
| download | emacs-e1cd9b5b4ad0777c88337fe5abb37e5e4bb0adcc.tar.gz emacs-e1cd9b5b4ad0777c88337fe5abb37e5e4bb0adcc.zip | |
(woman2-TH): Quote search string argument to string-match.
| -rw-r--r-- | lisp/woman.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/woman.el b/lisp/woman.el index e46240884f8..9f47329fd3b 100644 --- a/lisp/woman.el +++ b/lisp/woman.el | |||
| @@ -3846,10 +3846,9 @@ v alters page foot left; m alters page head center. | |||
| 3846 | (insert " -- ") | 3846 | (insert " -- ") |
| 3847 | (woman-forward-arg 'unquote 'concat) | 3847 | (woman-forward-arg 'unquote 'concat) |
| 3848 | ;; Delete repeated arguments: | 3848 | ;; Delete repeated arguments: |
| 3849 | (if (string-match (buffer-substring here (point)) | 3849 | (if (string-match (regexp-quote (buffer-substring here (point))) |
| 3850 | (buffer-substring start here)) | 3850 | (buffer-substring start here)) |
| 3851 | (delete-region here (point))) | 3851 | (delete-region here (point))))) |
| 3852 | )) | ||
| 3853 | ;; Embolden heading (point is at end of heading): | 3852 | ;; Embolden heading (point is at end of heading): |
| 3854 | (woman-set-face | 3853 | (woman-set-face |
| 3855 | (save-excursion (beginning-of-line) (point)) (point) 'woman-bold) | 3854 | (save-excursion (beginning-of-line) (point)) (point) 'woman-bold) |