; * lisp/so-long.el: Backwards-compatibility fix for Emacs < 30

We support Emacs 24.4 and later (for ELPA releases), so revert the
change from commit 7705bdfa5b
This commit is contained in:
Phil Sainty 2025-02-19 01:07:04 +13:00
parent 03a6d5a763
commit 25eabcde0d

View file

@ -1716,7 +1716,8 @@ major mode is a member (or derivative of a member) of `so-long-target-modes'.
(not so-long--inhibited)
(not so-long--calling)
(or (eq so-long-target-modes t)
(derived-mode-p so-long-target-modes))
;; Maintain `derived-mode-p' compatibility with Emacs < 30.
(apply #'derived-mode-p so-long-target-modes))
(setq so-long-detected-p (funcall so-long-predicate))
;; `so-long' should be called; but only if and when the buffer is
;; displayed in a window. Long lines in invisible buffers are generally