]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 404e9bfa8a6382ecbb4fd77ba80043c7f16be9b1..b028f1f67de3bb31dd1c32911317a31fe2e1a429 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 5553556e03ccbc41d166b07a47f9974e1cc39568..ec60d05f1da77f7eeab8fa7efda1855a0fc9079d 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