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

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

[nongnu] elpa/gptel 648fa228a1 115/273: gptel: Fix check for markdown-mo


From: ELPA Syncer
Subject: [nongnu] elpa/gptel 648fa228a1 115/273: gptel: Fix check for markdown-mode (#109)
Date: Wed, 1 May 2024 10:02:10 -0400 (EDT)

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

    gptel: Fix check for markdown-mode (#109)
    
    * gptel.el (gptel-default-mode): Use `fboundp' instead of `featurep' to 
check if
    markdown-mode is available, since the latter requires `markdown-mode' to be
    already loaded.
---
 gptel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gptel.el b/gptel.el
index a9913ab5d1..3285ebd5e2 100644
--- a/gptel.el
+++ b/gptel.el
@@ -151,7 +151,7 @@ to ChatGPT. Note: this hook runs even if the request fails."
   :type 'hook)
 
 (defvar gptel-default-session "*ChatGPT*")
-(defcustom gptel-default-mode (if (featurep 'markdown-mode)
+(defcustom gptel-default-mode (if (fboundp 'markdown-mode)
                                'markdown-mode
                              'text-mode)
   "The default major mode for dedicated chat buffers.



reply via email to

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