]> git.eshelyaron.com Git - emacs.git/commitdiff
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 603888477fb0780de020d722803fecdf85414b05..a42eac0b7259caf8648165c2b5747cd15f6ea03a 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 51d18235e1bed74362acdb490a67d8f025191cf9..005358e3c7d81913f9d83f525f396e97cb82e18c 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))))