diff options
| author | Karthik Chikmagalur <karthikchikmagalur@gmail.com> | 2026-03-01 16:22:08 -0800 |
|---|---|---|
| committer | Karthik Chikmagalur <karthikchikmagalur@gmail.com> | 2026-03-01 16:22:08 -0800 |
| commit | d83b894ee7a9daf7c8e9b864c23d08f1b23d78f6 (patch) | |
| tree | a3f85c4238aa1684d26261fd08f60474d893d3a3 | |
| parent | cfca7fde9e28320299b15ea573d5b556183aa34c (diff) | |
popper: Handle non-displayed buffers in popper-lower-to-popupexternals/popper
* popper.el (popper-lower-to-popup): Make lowering work correctly
when the buffer being lowered to popup status is not visible in a
window on any frame.
| -rw-r--r-- | popper.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -593,12 +593,13 @@ If BUFFER is not specified,raise the current buffer." "Turn a regular buffer BUFFER into a popup. If BUFFER is not specified act on the current buffer instead." - (let ((buf (get-buffer (or buffer (current-buffer))))) + (let* ((buf (get-buffer (or buffer (current-buffer)))) + (win (get-buffer-window buf t))) (with-current-buffer buf (setq popper-popup-status (if (popper-popup-p buf) 'popup 'user-popup)) - (quit-window nil (get-buffer-window buf t)) + (when win (quit-window nil win)) (pop-to-buffer buf)) (popper--update-popups))) |
