Skip to content

Commit 95aba61

Browse files
committed
change align to use derived-mode-p
* lisp/align.el (align-region): Use derived-mode-p.
1 parent c92bae9 commit 95aba61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/align.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ aligner would have dealt with are."
13221322
(modes (assq 'modes rule)))
13231323
;; unless the `run-if' form tells us not to, look for the
13241324
;; rule..
1325-
(unless (or (and modes (not (memq major-mode
1325+
(unless (or (and modes (not (cl-member-if #'derived-mode-p
13261326
(eval (cdr modes)))))
13271327
(and run-if (not (funcall (cdr run-if)))))
13281328
(let* ((case-fold-search case-fold-search)

0 commit comments

Comments
 (0)