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

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

[elpa] externals/mct b79b383d1f 60/64: Fix a6dac17


From: ELPA Syncer
Subject: [elpa] externals/mct b79b383d1f 60/64: Fix a6dac17
Date: Thu, 30 Dec 2021 23:58:01 -0500 (EST)

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

    Fix a6dac17
---
 mct.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/mct.el b/mct.el
index 75ed91ba7c..cf21fb72ac 100644
--- a/mct.el
+++ b/mct.el
@@ -308,8 +308,9 @@ Meant to be added to `after-change-functions'."
 
 (defun mct--region-p ()
   "Return non-nil if Mct is completing in region."
-  (with-current-buffer (mct--region-current-buffer)
-    (bound-and-true-p mct-region-mode)))
+  (when-let ((buf (mct--region-current-buffer)))
+    (with-current-buffer buf
+      (bound-and-true-p mct-region-mode))))
 
 (defun mct--display-completion-list-advice (&rest app)
   "Prepare advice around `display-completion-list'.



reply via email to

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