[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/popper 3212241316 083/102: Fix #29: Error while modifyi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/popper 3212241316 083/102: Fix #29: Error while modifying mode line. (#30) |
Date: |
Fri, 8 Sep 2023 15:58:55 -0400 (EDT) |
branch: externals/popper
commit 3212241316f7da42d2848700dbb23f09f768df4e
Author: Vincent Zhang <seagle0128@gmail.com>
Commit: GitHub <noreply@github.com>
Fix #29: Error while modifying mode line. (#30)
* Fix #29: Error while modifying mode line.
* Check whether mode-line-format is a list.
* Fix invalid mode-line in calendar.
---
popper.el | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/popper.el b/popper.el
index 4d48563246..037ca420d3 100644
--- a/popper.el
+++ b/popper.el
@@ -464,13 +464,14 @@ a popup buffer to open."
(defun popper--modified-mode-line ()
"Return modified mode-line string."
- (when popper-mode-line
- (if (member popper-mode-line mode-line-format)
- mode-line-format
- (append (cl-subseq (default-value 'mode-line-format) 0
popper-mode-line-position)
- (list popper-mode-line
- (nthcdr popper-mode-line-position
- (default-value 'mode-line-format)))))))
+ (if (and popper-mode-line (consp mode-line-format))
+ (if (member popper-mode-line mode-line-format)
+ mode-line-format
+ (append (cl-subseq (default-value 'mode-line-format) 0
popper-mode-line-position)
+ (list popper-mode-line
+ (nthcdr popper-mode-line-position
+ (default-value 'mode-line-format)))))
+ mode-line-format))
(defun popper--restore-mode-lines (win-buf-alist)
"Restore the default value of `mode-line-format'.
@@ -647,7 +648,7 @@ If BUFFER is not specified act on the current buffer
instead."
('mode (cl-pushnew (car elm) popper--suppressed-modes))
('pred (cl-pushnew (car elm) popper--suppressed-predicates))))
(popper--insert-type (car elm)))))
-
+
(dolist (entry popper-reference-buffers nil)
(popper--insert-type entry)))
- [elpa] externals/popper 0127de7161 052/102: Updated Readme for readability + handle project-current when nil, (continued)
- [elpa] externals/popper 0127de7161 052/102: Updated Readme for readability + handle project-current when nil, ELPA Syncer, 2023/09/08
- [elpa] externals/popper a29c603acd 055/102: Merge branch 'feature' of github.com:karthink/popper into feature, ELPA Syncer, 2023/09/08
- [elpa] externals/popper b9673ae612 059/102: Fix popper-window-height usage, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 9b1cff1b57 061/102: Popups are updated correctly now, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 032e75bf08 063/102: Added feature to show popups in echo area when cycling., ELPA Syncer, 2023/09/08
- [elpa] externals/popper 8d2b664465 067/102: Popper-echo will use up to 2 minibuffer lines by default, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 9e368e1d20 072/102: Clarify: Does not support popups in new frames, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 6a2ddcb354 073/102: Added tip to match shell buffers, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 2650056e0e 075/102: Dispatch action control with popper-echo, ELPA Syncer, 2023/09/08
- [elpa] externals/popper a50edecacf 080/102: Fix popper-mode-line for simple-modeline, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 3212241316 083/102: Fix #29: Error while modifying mode line. (#30),
ELPA Syncer <=
- [elpa] externals/popper 50568b8af2 090/102: popper.el: Fix child-frame resetting popups, ELPA Syncer, 2023/09/08
- [elpa] externals/popper cc48e01219 091/102: Sort open popups by display time., ELPA Syncer, 2023/09/08
- [elpa] externals/popper f0038228eb 093/102: Silence compiler warnings on Emacs 29 (#44), ELPA Syncer, 2023/09/08
- [elpa] externals/popper 44752c5121 020/102: Better test for removing from display-buffer-alist, ELPA Syncer, 2023/09/08
- [elpa] externals/popper a507d3d441 022/102: Minor changes, increase version, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 71d77ae775 029/102: Typos in README, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 6ef0a670e5 032/102: Update README with more info, ELPA Syncer, 2023/09/08
- [elpa] externals/popper a85a343c99 027/102: Merge branch 'popup-groups', ELPA Syncer, 2023/09/08
- [elpa] externals/popper 31dc52c313 036/102: Prettifying README, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 89ed8ab2da 038/102: Documentation update + kill-latest-popup kills frames now, ELPA Syncer, 2023/09/08