From: Phil Sainty Date: Tue, 18 Feb 2025 12:07:04 +0000 (+1300) Subject: ; * lisp/so-long.el: Backwards-compatibility fix for Emacs < 30 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=15c2f68f0baeae8d80aa798f4b9f01b6da0ebe22;p=emacs.git ; * 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 7705bdfa5b89f78dab049f73f636b9680a3c12bc (cherry picked from commit 25eabcde0d6ec7d8c161c2e05a5600b1c22fa43d) --- diff --git a/lisp/so-long.el b/lisp/so-long.el index 8ac4ff87a94..6ce9078bc28 100644 --- a/lisp/so-long.el +++ b/lisp/so-long.el @@ -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