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

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

[elpa] externals/mct ef5c71be72 1/2: Guard against void corfu-mode


From: ELPA Syncer
Subject: [elpa] externals/mct ef5c71be72 1/2: Guard against void corfu-mode
Date: Thu, 20 Jan 2022 12:57:48 -0500 (EST)

branch: externals/mct
commit ef5c71be728b75d963f6b8ae03eb1702751552d8
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Guard against void corfu-mode
---
 mct.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mct.el b/mct.el
index 5ebdbda9a4..901436d57c 100644
--- a/mct.el
+++ b/mct.el
@@ -1122,7 +1122,8 @@ Meant to be added to `after-change-functions'."
   (when-let (buf (mct--region-current-buffer))
     ;; TODO 2022-01-18: Do the same for company-mode, but we need to
     ;; test it as well.
-    (when (null (buffer-local-value 'corfu-mode buf))
+    (when (and (bound-and-true-p corfu-mode)
+               (null (buffer-local-value 'corfu-mode buf)))
       (while-no-input
         (condition-case nil
             (save-match-data



reply via email to

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