aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
authorStefan Monnier2013-09-17 13:48:06 -0400
committerStefan Monnier2013-09-17 13:48:06 -0400
commit9c0ad4f7bde140c2d5f5c63df240d34d3f5f3fe6 (patch)
tree00ff6b1c964951983988bcfc988d3ecc6149e65a /lisp/help-mode.el
parent7a806dfb9e99888d2a625afa2a8ed2c154dbbdf0 (diff)
downloademacs-9c0ad4f7bde140c2d5f5c63df240d34d3f5f3fe6.tar.gz
emacs-9c0ad4f7bde140c2d5f5c63df240d34d3f5f3fe6.zip
* lisp/help-mode.el (help-mode-finish): Use derived-mode-p.
Remove obsolete highlighting.
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el10
1 files changed, 1 insertions, 9 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 5553556e03c..ec60d05f1da 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -295,16 +295,8 @@ Commands:
295 295
296;;;###autoload 296;;;###autoload
297(defun help-mode-finish () 297(defun help-mode-finish ()
298 (when (eq major-mode 'help-mode) 298 (when (derived-mode-p 'help-mode)
299 (setq buffer-read-only t) 299 (setq buffer-read-only t)
300 (save-excursion
301 (goto-char (point-min))
302 (let ((inhibit-read-only t))
303 (when (re-search-forward "^This [^[:space:]]+ is advised.$" nil t)
304 (put-text-property (match-beginning 0)
305 (match-end 0)
306 'face 'font-lock-warning-face))))
307
308 (help-make-xrefs (current-buffer)))) 300 (help-make-xrefs (current-buffer))))
309 301
310;; Grokking cross-reference information in doc strings and 302;; Grokking cross-reference information in doc strings and