emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gptel a4ca92ecb1 2/2: gptel: Note future change in provide


From: ELPA Syncer
Subject: [nongnu] elpa/gptel a4ca92ecb1 2/2: gptel: Note future change in provided-mode-derived-p
Date: Tue, 26 Nov 2024 13:00:22 -0500 (EST)

branch: elpa/gptel
commit a4ca92ecb1d3ee1d1e41a08b0516a8e253328bb1
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>

    gptel: Note future change in provided-mode-derived-p
    
    * gptel.el (gptel--strip-mode-suffix): Add a note about future
    changes (Emacs 30+) to the calling convention of
    `provided-mode-derived-p'.  The deprecated calling convention
    continues to work. (#461)
---
 gptel.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gptel.el b/gptel.el
index 7fef4570cb..e27f4abfb6 100644
--- a/gptel.el
+++ b/gptel.el
@@ -972,6 +972,8 @@ MODE-SYM is typically a major-mode symbol."
                          (symbol-name mode-sym)
                          (string-remove-suffix "-mode")
                          (string-remove-suffix "-ts"))))
+        ;; NOTE: The advertised calling convention of provided-mode-derived-p
+        ;; has changed in Emacs 30, this needs to be updated eventually
         (if (provided-mode-derived-p
              mode-sym 'prog-mode 'text-mode 'tex-mode)
             mode-name ""))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]