[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/popper 0e16eb9b86 050/102: Tweaks to readme, major-mode
From: |
ELPA Syncer |
Subject: |
[elpa] externals/popper 0e16eb9b86 050/102: Tweaks to readme, major-mode identification code |
Date: |
Fri, 8 Sep 2023 15:58:53 -0400 (EDT) |
branch: externals/popper
commit 0e16eb9b866ec199c0595cea93749efe3ddde896
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Tweaks to readme, major-mode identification code
---
README.org | 17 ++++++++---------
popper.el | 8 +++-----
2 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/README.org b/README.org
index 0511ad8024..a44ceadd63 100644
--- a/README.org
+++ b/README.org
@@ -191,13 +191,13 @@ To specify popups to auto-hide, use a cons cell with the
=hide= symbol when spec
#+begin_src emacs-lisp
(setq popper-reference-buffers
- '("\\*Messages\\*"
- ("\\*Async Shell Command\\*" . hide)
+ '(("Output\\*$" . hide)
(completion-list-mode . hide)
- occur-mode))
+ occur-mode
+ "\\*Messages\\*"))
#+end_src
-This assignment will suppress async shell command output and the Completions
buffer. The other entries are treated as normal popups.
+This assignment will suppress all buffers ending in =Output*= and the
Completions buffer. The other entries are treated as normal popups.
You can combine the hiding feature with predicates for classifying buffers as
popups:
@@ -205,13 +205,12 @@ You can combine the hiding feature with predicates for
classifying buffers as po
(defun popper-shell-output-empty-p (buf)
(and (string-match-p "\\*Async Shell Command\\*" (buffer-name buf))
(= (buffer-size buf) 0)))
-
- (setq popper-reference-buffers
- '("\\*Messages\\*"
- (popper-shell-output-empty-p . hide)))
+
+ (add-to-list 'popper-reference-buffers
+ '(popper-shell-output-empty-p . hide))
#+END_SRC
-This assignment will suppress display of the async shell command output buffer
only when there is no output (stdout). Once it is hidden it will be treated as
a popup on par with the Messages buffer.
+This assignment will suppress display of the async shell command output buffer
only when there is no output (stdout). Once it is hidden it will be treated as
a popup on par with other entries in =popper-reference-buffers=.
* Technical notes
=popper= uses a buffer local variable (=popper-popup-status=) to identify if a
given buffer should be treated as a popup. Matching is always by buffer and not
window, so having two windows of a buffer, one treated as a popup and one as a
regular window, isn't possible (although you can do this with indirect clones).
In addition, it maintains an alist of popup windows/buffers for cycling through.
diff --git a/popper.el b/popper.el
index bbcc144fab..347c4fc937 100644
--- a/popper.el
+++ b/popper.el
@@ -601,11 +601,9 @@ If BUFFER is not specified act on the current buffer
instead."
(pcase elm
((pred stringp) 'name)
((and (pred symbolp)
- (guard (or (get elm 'derived-mode-parent)
- (get elm 'mode-class)
- (not (boundp elm))
- (not (fboundp elm))
- (commandp elm))))
+ (guard (or (memq 'derived-mode-parent (symbol-plist elm))
+ (memq 'mode-class (symbol-plist elm))
+ (string= "-mode" (substring (symbol-name elm) -5)))))
'mode)
((pred functionp) 'pred)
((pred consp) 'cons)))
- [elpa] externals/popper 667dcdd063 069/102: Added badge, (continued)
- [elpa] externals/popper 667dcdd063 069/102: Added badge, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 4d58a6dbba 076/102: Handle unbound dispatch keys in popper-echo, ELPA Syncer, 2023/09/08
- [elpa] externals/popper d5ab9b2c41 077/102: Popup without selecting (#17), ELPA Syncer, 2023/09/08
- [elpa] externals/popper a93ff38ab6 098/102: popper: Assign copyright to FSF, ELPA Syncer, 2023/09/08
- [elpa] externals/popper fd39948875 024/102: Removed redundant info from documentation, ELPA Syncer, 2023/09/08
- [elpa] externals/popper b32abcba49 030/102: Fixed popup display of newly created popup buffers, ELPA Syncer, 2023/09/08
- [elpa] externals/popper c465e0de24 007/102: Added technical notes to README, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 7f61e916ce 037/102: Child frame support for popper (ongoing), ELPA Syncer, 2023/09/08
- [elpa] externals/popper 767d4ffd0e 039/102: Modified README for clarity, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 096078acea 040/102: Add `perspective`-based grouping function (#5), ELPA Syncer, 2023/09/08
- [elpa] externals/popper 0e16eb9b86 050/102: Tweaks to readme, major-mode identification code,
ELPA Syncer <=
- [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