From def71b5e5b9f78a112e52201881aea631b7ebcde Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Wed, 23 Mar 2011 19:56:34 +0800 Subject: Tweak regexp in help-mode-finish Without this fix, "This special-form is advised." won't be correctly fontified. --- lisp/help-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/help-mode.el') 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)))) -- cgit v1.2.1