[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/popper ba7467b62b 010/102: More logic bugs fixed
From: |
ELPA Syncer |
Subject: |
[elpa] externals/popper ba7467b62b 010/102: More logic bugs fixed |
Date: |
Fri, 8 Sep 2023 15:58:50 -0400 (EDT) |
branch: externals/popper
commit ba7467b62ba84177e28b3d0abc40c2a41b2a3c06
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
More logic bugs fixed
Fixed: Some funky bugs in the interaction of `popper-find-popups',
`popper-update-popups' and `popper-raise-popup'.
Basically it's difficult to predict when _exactly_
`window-configuration-change-hook' runs, which was leading to all kinds of
unpredictable behavior when turning popups into regular buffers and
vice-versa.
---
popper.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/popper.el b/popper.el
index 586827b8f1..e03281e4c5 100644
--- a/popper.el
+++ b/popper.el
@@ -56,7 +56,8 @@
;;; Code:
-(require 'cl-lib)
+(require 'cl-macs)
+(require 'cl-seq)
(require 'subr-x)
(defgroup popper nil
@@ -192,10 +193,10 @@ in the list of buffers TEST-BUFFER-LIST."
Meant to be added to `window-configuration-change-hook'."
(let* ((open-buffers (mapcar #'window-buffer (window-list)))
(open-popups (popper-find-popups open-buffers))
- (closed-popups (cl-remove-if
+ (closed-popups (cl-remove-if-not
(lambda (arg)
- (eq (buffer-local-value 'popper-popup-status (cdr
arg))
- 'raised))
+ (memq (buffer-local-value 'popper-popup-status (cdr
arg))
+ '(popup user-popup)))
(cl-set-difference popper-open-popup-alist open-popups
:test (lambda (arg1 arg2) (eql (cdr arg1) (cdr
arg2)))))))
(setq popper-open-popup-alist (nreverse open-popups))
- [elpa] branch externals/popper created (now 031e4d093c), ELPA Syncer, 2023/09/08
- [elpa] externals/popper 1fada4f342 001/102: Initial commit - renamed popup-buffers to popper, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 86978d34bc 002/102: Cleaning up as preparation for MELPA., ELPA Syncer, 2023/09/08
- [elpa] externals/popper 7a6ee7b2d1 003/102: Fix minimum version, ELPA Syncer, 2023/09/08
- [elpa] externals/popper e45500829f 028/102: Added link to demo video in package description, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 2cc313e04d 017/102: package-lint & checkdoc suggestions, ELPA Syncer, 2023/09/08
- [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 <=
- [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, 2023/09/08
- [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