Commit e956634f authored by John Paul Wallington's avatar John Paul Wallington

(makefile-cleanup-continuations, makefile-warn-suspicious-lines):

Use `derived-mode-p'.
parent 362f44f2
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.
......
......@@ -1688,7 +1688,7 @@ and generates the overview, one line per target name."
;;; ------------------------------------------------------------
(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 @@ and generates the overview, one line per target name."
(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 @@ and generates the overview, one line per target name."
(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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment