+2008-06-03 John Paul Wallington <jpw@pobox.com>
+
+ * progmodes/make-mode.el (makefile-cleanup-continuations)
+ (makefile-warn-suspicious-lines, makefile-warn-continuations):
+ Use `derived-mode-p'.
+
2008-06-03 Stefan Monnier <monnier@iro.umontreal.ca>
* Makefile.in (update-elclist): Impose a fixed collation for sorting.
;;; ------------------------------------------------------------
(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
(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)
(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)