emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r103732: Tweak regexp in help-mode-fi


From: Leo Liu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r103732: Tweak regexp in help-mode-finish
Date: Wed, 23 Mar 2011 19:56:34 +0800
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 103732
committer: Leo Liu <address@hidden>
branch nick: trunk
timestamp: Wed 2011-03-23 19:56:34 +0800
message:
  Tweak regexp in help-mode-finish
  
  Without this fix, "This special-form is advised." won't be correctly
  fontified.
modified:
  lisp/ChangeLog
  lisp/help-mode.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2011-03-23 02:52:52 +0000
+++ b/lisp/ChangeLog    2011-03-23 11:56:34 +0000
@@ -1,3 +1,7 @@
+2011-03-23  Leo Liu  <address@hidden>
+
+       * help-mode.el (help-mode-finish): Tweak regexp.
+
 2011-03-23  Glenn Morris  <address@hidden>
 
        * eshell/esh-opt.el (eshell-eval-using-options):

=== modified file 'lisp/help-mode.el'
--- a/lisp/help-mode.el 2011-03-05 21:10:03 +0000
+++ b/lisp/help-mode.el 2011-03-23 11:56:34 +0000
@@ -330,7 +330,7 @@
     (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))))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]