From: Tom Tromey Date: Sat, 18 Mar 2017 22:06:05 +0000 (+0100) Subject: change align to use derived-mode-p X-Git-Tag: emacs-26.0.90~521^2~718 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=95aba610f1c1a40b0218b64b4d20ade7a6299208;p=emacs.git change align to use derived-mode-p * lisp/align.el (align-region): Use derived-mode-p. --- diff --git a/lisp/align.el b/lisp/align.el index b6a855b4954..000b63ed785 100644 --- a/lisp/align.el +++ b/lisp/align.el @@ -1322,7 +1322,7 @@ aligner would have dealt with are." (modes (assq 'modes rule))) ;; unless the `run-if' form tells us not to, look for the ;; rule.. - (unless (or (and modes (not (memq major-mode + (unless (or (and modes (not (cl-member-if #'derived-mode-p (eval (cdr modes))))) (and run-if (not (funcall (cdr run-if))))) (let* ((case-fold-search case-fold-search)