summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2011-03-23 19:56:34 +0800
committerLeo Liu <sdl.web@gmail.com>2011-03-23 19:56:34 +0800
commitdef71b5e5b9f78a112e52201881aea631b7ebcde (patch)
tree2a09775fafc6e7c1497bc4d8e8f09ac6b64f3015 /lisp/help-mode.el
parentdee091a37f6486dbbcf7bf00f6ee54d77033f997 (diff)
downloademacs-def71b5e5b9f78a112e52201881aea631b7ebcde.tar.gz
Tweak regexp in help-mode-finish
Without this fix, "This special-form is advised." won't be correctly fontified.
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 51d18235e1b..005358e3c7d 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -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))))