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

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

[elpa] externals/ebdb fa65397bae 1/3: Fix bug in window popping-up


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb fa65397bae 1/3: Fix bug in window popping-up
Date: Thu, 12 Jan 2023 12:19:58 -0500 (EST)

branch: externals/ebdb
commit fa65397bae97ec58efdbda1fdab2fd3484ce7e81
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    Fix bug in window popping-up
    
    * ebdb-com.el (ebdb-pop-up-window): The setting of `buffer-window' was
    supposed to belong to the THEN branch.
---
 ebdb-com.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index 04609c81c9..d1bf15cffa 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -1262,8 +1262,9 @@ popped up from."
       (if (not (or split-window size))
          ;; Not splitting, but buffer isn't visible, just take up
          ;; the whole window.
-         (pop-to-buffer-same-window buf)
-       (setq buffer-window (get-buffer-window buf t))
+         (progn
+           (pop-to-buffer-same-window buf)
+           (setq buffer-window (get-buffer-window buf t)))
        ;; Otherwise split.
        (setq
         buffer-window



reply via email to

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