1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00

Tweak regexp in help-mode-finish

Without this fix, "This special-form is advised." won't be correctly
fontified.
This commit is contained in:
Leo Liu 2011-03-23 19:56:34 +08:00
parent dee091a37f
commit def71b5e5b
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-03-23 Leo Liu <sdl.web@gmail.com>
* help-mode.el (help-mode-finish): Tweak regexp.
2011-03-23 Glenn Morris <rgm@gnu.org>
* eshell/esh-opt.el (eshell-eval-using-options):

View File

@ -330,7 +330,7 @@ Commands:
(save-excursion
(goto-char (point-min))
(let ((inhibit-read-only t))
(when (re-search-forward "^This \\w+ is advised.$" nil t)
(when (re-search-forward "^This [^[:space:]]+ is advised.$" nil t)
(put-text-property (match-beginning 0)
(match-end 0)
'face 'font-lock-warning-face))))