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

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

[nongnu] elpa/keycast a345618fd8 2/2: keycast-log-update-buffer: Show bu


From: ELPA Syncer
Subject: [nongnu] elpa/keycast a345618fd8 2/2: keycast-log-update-buffer: Show buffer if mode is re-enabled
Date: Sat, 15 Jan 2022 13:58:29 -0500 (EST)

branch: elpa/keycast
commit a345618fd8742df34fa3ed950443474ce6d8dad4
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    keycast-log-update-buffer: Show buffer if mode is re-enabled
    
    Previously killing the frame but not the buffer after disabling the
    mode meant that no new frame was created when the mode was enabled
    again.
---
 keycast.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/keycast.el b/keycast.el
index 04b17a2acf..f61558e608 100644
--- a/keycast.el
+++ b/keycast.el
@@ -350,8 +350,9 @@ instead."
         (setq buf (get-buffer-create keycast-log-buffer-name))
         (with-current-buffer buf
           (setq buffer-read-only t)
-          (setq mode-line-format nil)
-          (display-buffer-pop-up-frame buf keycast-log-frame-alist)))
+          (setq mode-line-format nil)))
+      (unless (get-buffer-window buf t)
+        (display-buffer-pop-up-frame buf keycast-log-frame-alist))
       (when-let ((output (keycast--format keycast-log-format)))
         (with-current-buffer buf
           (goto-char (if keycast-log-newest-first (point-min) (point-max)))



reply via email to

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