Skip to content

Commit

Permalink
Backport commit 7705bdfa5b8 from Emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 4, 2023
1 parent dde8e88 commit 2f12f06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -2135,10 +2135,12 @@ value. Otherwise return CHILDREN as is."
(if-not-mode (not (if (atom if-not-mode)
(eq major-mode if-not-mode)
(memq major-mode if-not-mode))))
(if-derived (if (atom if-derived)
(if-derived (if (or (atom if-derived)
(>= emacs-major-version 30))
(derived-mode-p if-derived)
(apply #'derived-mode-p if-derived)))
(if-not-derived (not (if (atom if-not-derived)
(if-not-derived (not (if (or (atom if-not-derived)
(>= emacs-major-version 30))
(derived-mode-p if-not-derived)
(apply #'derived-mode-p if-not-derived))))
(default)))
Expand Down

0 comments on commit 2f12f06

Please sign in to comment.