[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/popper 8af5e6b3bb 078/102: Don't error in popper-kill-l
From: |
ELPA Syncer |
Subject: |
[elpa] externals/popper 8af5e6b3bb 078/102: Don't error in popper-kill-latest-popup (#18) |
Date: |
Fri, 8 Sep 2023 15:58:55 -0400 (EDT) |
branch: externals/popper
commit 8af5e6b3bb08a71abbafba2491e3ab001a13a067
Author: Fredrik Bergroth <fbergroth@gmail.com>
Commit: GitHub <noreply@github.com>
Don't error in popper-kill-latest-popup (#18)
---
popper.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/popper.el b/popper.el
index e6abf91356..ad9eb8f2d7 100644
--- a/popper.el
+++ b/popper.el
@@ -578,10 +578,12 @@ If BUFFER is not specified act on the current buffer
instead."
(defun popper-kill-latest-popup ()
"Kill the latest popup-buffer and delete its window."
(interactive)
- (cl-destructuring-bind ((win . buf) . rest) popper-open-popup-alist
- (pop popper-open-popup-alist)
- (popper--delete-popup win)
- (kill-buffer buf)))
+ (pcase (pop popper-open-popup-alist)
+ (`(,win . ,buf)
+ (popper--delete-popup win)
+ (kill-buffer buf))
+ (t
+ (message "No open popups!"))))
(defun popper--suppress-p (buf)
"Predicate to check if popup-buffer BUF needs to be suppressed."
- [elpa] externals/popper 2408f9fb74 018/102: group popup-buffers by arbitrary predicate, (continued)
- [elpa] externals/popper 2408f9fb74 018/102: group popup-buffers by arbitrary predicate, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 4b27799fb3 044/102: Added hiding feature., ELPA Syncer, 2023/09/08
- [elpa] externals/popper ba7467b62b 010/102: More logic bugs fixed, ELPA Syncer, 2023/09/08
- [elpa] externals/popper e1773ae3e4 033/102: More README flourishes, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 2341669327 026/102: Linted in preparation for merge into master, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 62c82810a9 035/102: More README edits, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 4e2fe1d86a 048/102: Added video demo of buffer hiding, ELPA Syncer, 2023/09/08
- [elpa] externals/popper a3dee00e3b 056/102: Renamed some functions to be internal, as popper--*, ELPA Syncer, 2023/09/08
- [elpa] externals/popper ca7d7312fc 071/102: Hiding popups with predicate - bug fix, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 1ffc269afa 074/102: Simplify usage section of README, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 8af5e6b3bb 078/102: Don't error in popper-kill-latest-popup (#18),
ELPA Syncer <=
- [elpa] externals/popper 9118307349 016/102: Finished integration with project.el, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 2997eb6553 012/102: No duplicate buffers in buried-buffers-alist, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 9df5b0c8d3 034/102: Typos in README, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 2be084a77c 045/102: Set a minimum window size (#9), ELPA Syncer, 2023/09/08
- [elpa] externals/popper 7761fab568 049/102: Swapped out mp4 for gif, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 898e04b38b 004/102: Fixed errors in defcustom options, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 4bff39358e 015/102: Removed unnecessary progn, ELPA Syncer, 2023/09/08
- [elpa] externals/popper a1f0f33566 011/102: Linting for MELPA + added License (GPL v3), ELPA Syncer, 2023/09/08
- [elpa] externals/popper 07c2c14435 005/102: Typos in README.org, ELPA Syncer, 2023/09/08
- [elpa] externals/popper b0e48719fd 008/102: Logic fix in popper.el, ELPA Syncer, 2023/09/08