[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/popper 76b1a1f1bc 094/102: popper-echo: Tweak popper gr
From: |
ELPA Syncer |
Subject: |
[elpa] externals/popper 76b1a1f1bc 094/102: popper-echo: Tweak popper group display |
Date: |
Fri, 8 Sep 2023 15:58:56 -0400 (EDT) |
branch: externals/popper
commit 76b1a1f1bce412296d564056c76dd174bcf8ec64
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
popper-echo: Tweak popper group display
In addition to strings and symbols, popup groups can now be any
object with a printable representation, such as a frame or buffer.
Note: The print name of the group is truncated to 20 chars. It
might be worth providing an option for this.
---
popper-echo.el | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/popper-echo.el b/popper-echo.el
index 615b6bd040..c38e8e6c82 100644
--- a/popper-echo.el
+++ b/popper-echo.el
@@ -132,9 +132,7 @@ off."
(cl-remove-if-not #'buffer-live-p)
(mapcar #'buffer-name)
(delete-dups)))
- (group (if (and grp-symb (symbolp grp-symb))
- (symbol-name grp-symb)
- grp-symb))
+ (group (and grp-symb (concat (substring (format "Group (%S" grp-symb)
0 27) "): ")))
(open-popup (buffer-name))
(dispatch-keys-extended (append (cdr popper-echo-dispatch-keys)
(make-list (max 0 (- (length
buried-popups)
@@ -164,13 +162,12 @@ off."
(propertize "]" 'face
'popper-echo-area-buried)))
dispatch-keys-extended
buried-popups)))))
- (let* ((max-width (- (* popper-echo-lines (frame-width))
- (if group (+ 13 (length group)) 11)))
+ (let* ((max-width (- (* popper-echo-lines (frame-width)) (if group (length
group) 11)))
(plen (length popup-strings))
(space-p (> max-width plen)))
(message "%s"
(concat
- (if group (format "Group (%s): " group) "Popups: ")
+ (or group "Popups: ")
(substring popup-strings 0 (if space-p plen max-width))
(unless space-p
(propertize "..." 'face 'popper-echo-area-buried)))))
- [elpa] externals/popper 9a6af01f00 064/102: Dispatch keymap added to popper-echo-names, (continued)
- [elpa] externals/popper 9a6af01f00 064/102: Dispatch keymap added to popper-echo-names, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 918306c2af 066/102: Updated README with popper-echo demo and new vids, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 8592573f33 070/102: Fixed popper-echo display when groups are symbols, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 7b02960025 082/102: Revert "Fix pcase clause for native-comp", ELPA Syncer, 2023/09/08
- [elpa] externals/popper 60297066e3 085/102: pcase 'otherwise' clause should be _ not 'T (#28), ELPA Syncer, 2023/09/08
- [elpa] externals/popper 6599c9b5a1 086/102: eliminate all warnings generated during byte-compilation (#33), ELPA Syncer, 2023/09/08
- [elpa] externals/popper 7ea13618c8 087/102: Remove needless quote (#37), ELPA Syncer, 2023/09/08
- [elpa] externals/popper d7560f1835 089/102: Fix for #35: alist argument ignored by default popper display func, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 47bf592c89 081/102: Fix pcase clause for native-comp, ELPA Syncer, 2023/09/08
- [elpa] externals/popper da70c8296a 092/102: popper-echo.el: Tweak popper echo display format, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 76b1a1f1bc 094/102: popper-echo: Tweak popper group display,
ELPA Syncer <=
- [elpa] externals/popper 809ec965d8 097/102: popper: popper-cycle can cycle backwards, ELPA Syncer, 2023/09/08
- [elpa] externals/popper fe4f0b3b8b 100/102: popper.el, README: Release version 0.4.6, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 031e4d093c 102/102: popper: Update defcustom for popper-reference-buffers, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 3406efb1df 088/102: Fix byte-compile warning in popper-echo, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 71bbc5fc10 096/102: popper: Handle atomic window popups, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 793aef4e5f 099/102: popper.el: Documentation changes for ELPA, ELPA Syncer, 2023/09/08
- [elpa] externals/popper ecc01a46b0 101/102: popper: Revert type natnum to integer, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 38811f9c09 014/102: project root integrated into popper-popup-status, ELPA Syncer, 2023/09/08
- [elpa] externals/popper f9fef8192a 084/102: Fix popper-mode-line not respecting nil., ELPA Syncer, 2023/09/08
- [elpa] externals/popper 527a85c491 079/102: Fix setup instructions (non use-package) for popper-echo #21, ELPA Syncer, 2023/09/08