Tweak regexp in help-mode-finish
authorLeo Liu <sdl.web@gmail.com>
Wed, 23 Mar 2011 11:56:34 +0000 (19:56 +0800)
committerLeo Liu <sdl.web@gmail.com>
Wed, 23 Mar 2011 11:56:34 +0000 (19:56 +0800)
Without this fix, "This special-form is advised." won't be correctly
fontified.

lisp/ChangeLog
lisp/help-mode.el

index 6038884..a42eac0 100644 (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):
index 51d1823..005358e 100644 (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))))