diff options
| author | Leo Liu | 2011-03-23 19:56:34 +0800 |
|---|---|---|
| committer | Leo Liu | 2011-03-23 19:56:34 +0800 |
| commit | def71b5e5b9f78a112e52201881aea631b7ebcde (patch) | |
| tree | 2a09775fafc6e7c1497bc4d8e8f09ac6b64f3015 | |
| parent | dee091a37f6486dbbcf7bf00f6ee54d77033f997 (diff) | |
| download | emacs-def71b5e5b9f78a112e52201881aea631b7ebcde.tar.gz emacs-def71b5e5b9f78a112e52201881aea631b7ebcde.zip | |
Tweak regexp in help-mode-finish
Without this fix, "This special-form is advised." won't be correctly
fontified.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/help-mode.el | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 603888477fb..a42eac0b725 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-03-23 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * help-mode.el (help-mode-finish): Tweak regexp. | ||
| 4 | |||
| 1 | 2011-03-23 Glenn Morris <rgm@gnu.org> | 5 | 2011-03-23 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * eshell/esh-opt.el (eshell-eval-using-options): | 7 | * eshell/esh-opt.el (eshell-eval-using-options): |
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: | |||
| 330 | (save-excursion | 330 | (save-excursion |
| 331 | (goto-char (point-min)) | 331 | (goto-char (point-min)) |
| 332 | (let ((inhibit-read-only t)) | 332 | (let ((inhibit-read-only t)) |
| 333 | (when (re-search-forward "^This \\w+ is advised.$" nil t) | 333 | (when (re-search-forward "^This [^[:space:]]+ is advised.$" nil t) |
| 334 | (put-text-property (match-beginning 0) | 334 | (put-text-property (match-beginning 0) |
| 335 | (match-end 0) | 335 | (match-end 0) |
| 336 | 'face 'font-lock-warning-face)))) | 336 | 'face 'font-lock-warning-face)))) |