* lisp/help-mode.el (help-mode-finish): Use derived-mode-p.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 17 Sep 2013 17:48:06 +0000 (13:48 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 17 Sep 2013 17:48:06 +0000 (13:48 -0400)
Remove obsolete highlighting.

lisp/ChangeLog
lisp/help-mode.el

index 404e9bf..b028f1f 100644 (file)
@@ -1,5 +1,8 @@
 2013-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * help-mode.el (help-mode-finish): Use derived-mode-p.
+       Remove obsolete highlighting.
+
        * play/life.el (life-mode): Use define-derived-mode.  Derive from
        special-mode.
        (life): Let-bind inhibit-read-only.
index 5553556..ec60d05 100644 (file)
@@ -295,16 +295,8 @@ Commands:
 
 ;;;###autoload
 (defun help-mode-finish ()
-  (when (eq major-mode 'help-mode)
+  (when (derived-mode-p 'help-mode)
     (setq buffer-read-only t)
-    (save-excursion
-      (goto-char (point-min))
-      (let ((inhibit-read-only 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))))
-
     (help-make-xrefs (current-buffer))))
 \f
 ;; Grokking cross-reference information in doc strings and