changeset 95520:29370595f9cc

(makefile-cleanup-continuations, makefile-warn-suspicious-lines): Use `derived-mode-p'.
author John Paul Wallington <jpw@pobox.com>
date Tue, 03 Jun 2008 19:34:36 +0000
parents 0f9033e19d18
children 9eca14933764
files lisp/progmodes/make-mode.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/make-mode.el	Tue Jun 03 16:09:01 2008 +0000
+++ b/lisp/progmodes/make-mode.el	Tue Jun 03 19:34:36 2008 +0000
@@ -1688,7 +1688,7 @@
 ;;; ------------------------------------------------------------
 
 (defun makefile-cleanup-continuations ()
-  (if (eq major-mode 'makefile-mode)
+  (if (derived-mode-p 'makefile-mode)
       (if (and makefile-cleanup-continuations
 	       (not buffer-read-only))
 	  (save-excursion
@@ -1703,7 +1703,7 @@
 
 (defun makefile-warn-suspicious-lines ()
   ;; Returning non-nil cancels the save operation
-  (if (eq major-mode 'makefile-mode)
+  (if (derived-mode-p 'makefile-mode)
       (save-excursion
 	(goto-char (point-min))
 	(if (re-search-forward "^\\(\t+$\\| +\t\\)" nil t)
@@ -1712,7 +1712,7 @@
 			  (count-lines (point-min) (point)))))))))
 
 (defun makefile-warn-continuations ()
-  (if (eq major-mode 'makefile-mode)
+  (if (derived-mode-p 'makefile-mode)
       (save-excursion
 	(goto-char (point-min))
 	(if (re-search-forward "\\\\[ \t]+$" nil t)