]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/so-long.el: Backwards-compatibility fix for Emacs < 30
authorPhil Sainty <psainty@orcon.net.nz>
Tue, 18 Feb 2025 12:07:04 +0000 (01:07 +1300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Mar 2025 17:14:45 +0000 (18:14 +0100)
We support Emacs 24.4 and later (for ELPA releases), so revert the
change from commit 7705bdfa5b89f78dab049f73f636b9680a3c12bc

(cherry picked from commit 25eabcde0d6ec7d8c161c2e05a5600b1c22fa43d)

lisp/so-long.el

index 8ac4ff87a940383a520cdd7ce52ee652f3ac0556..6ce9078bc28ba95b1b2116d0e965b7bae35f9cf2 100644 (file)
@@ -1682,7 +1682,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