From 15c2f68f0baeae8d80aa798f4b9f01b6da0ebe22 Mon Sep 17 00:00:00 2001 From: Phil Sainty Date: Wed, 19 Feb 2025 01:07:04 +1300 Subject: [PATCH] ; * 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) --- lisp/so-long.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5