mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
(woman2-TH): Quote search string argument to string-match.
This commit is contained in:
parent
0159b08c4e
commit
e1cd9b5b4a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user