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

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

[elpa] externals/which-key ace569b 3/8: Check for existence of buffer in


From: Stefan Monnier
Subject: [elpa] externals/which-key ace569b 3/8: Check for existence of buffer in which-key--popup-showing-p
Date: Mon, 7 Sep 2020 16:26:57 -0400 (EDT)

branch: externals/which-key
commit ace569b65f13526781200b479d506274637f1921
Author: Justin Burkett <justin@burkett.cc>
Commit: Justin Burkett <justin@burkett.cc>

    Check for existence of buffer in which-key--popup-showing-p
    
    Fixes #197
---
 which-key.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/which-key.el b/which-key.el
index 09effbc..c62924d 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1111,7 +1111,8 @@ popup)."
     (delete-frame which-key--frame)))
 
 (defun which-key--popup-showing-p ()
-  (window-live-p (get-buffer-window which-key--buffer)))
+  (and (bufferp which-key--buffer)
+       (window-live-p (get-buffer-window which-key--buffer))))
 
 (defun which-key--show-popup (act-popup-dim)
   "Show the which-key buffer.



reply via email to

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