[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/popper 89ed8ab2da 038/102: Documentation update + kill-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/popper 89ed8ab2da 038/102: Documentation update + kill-latest-popup kills frames now |
Date: |
Fri, 8 Sep 2023 15:58:52 -0400 (EDT) |
branch: externals/popper
commit 89ed8ab2da330ffefa0d32ac34491467fc6be228
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Documentation update + kill-latest-popup kills frames now
---
README.org | 10 +++++-----
popper.el | 41 ++++++++++++++++++++++++++---------------
2 files changed, 31 insertions(+), 20 deletions(-)
diff --git a/README.org b/README.org
index 67f2617ae2..ecd7a3c507 100644
--- a/README.org
+++ b/README.org
@@ -121,11 +121,11 @@ You can also provide a custom function that takes no
arguments, is executed in t
#+BEGIN_SRC emacs-lisp
(defun popper-group-by-my-rule ()
- "This function is called with each popup buffer as current, so
- you can use buffer-local variables. This function should return
- a string or symbol that acts as the group name for this
- buffer."
- 'my-popup-group)
+ "This function should return a string or symbol that is the
+ name of the group this buffer belongs to. It is called with each
+ popup buffer as current, so you can use buffer-local variables."
+
+ 'my-popup-group)
(setq popper-group-function #'popper-group-by-my-rule)
#+END_SRC
diff --git a/popper.el b/popper.el
index 75e1979460..27d26db399 100644
--- a/popper.el
+++ b/popper.el
@@ -25,13 +25,13 @@
;;
;;; Commentary:
-;; This package provides a minor-mode to designate buffers as "popups" and
-;; summon and dismiss them with a key. Useful for many things, including
-;; toggling REPLS, documentation, compilation or shell output, etc. This
package
-;; will place buffers on your screen, but it works best in conjunction with
some
-;; system to handle window creation and placement, like shackle.el. Under the
-;; hood popper summons windows defined by the user as "popups" by simply
calling
-;; `display-buffer'.
+;; Popper is a minor-mode to tame the flood of ephemeral windows Emacs
+;; produces, while still keeping them within arm's reach. Designate any
+;; buffer to "popup" status, and it will stay out of your way. Disimss
+;; or summon it easily with one key. Cycle through all your "popups" or
+;; just the ones relevant to your current buffer. Useful for many
+;; things, including toggling display of REPLs, documentation,
+;; compilation or shell output, etc.
;;
;; For a demo describing usage and customization see
;; https://www.youtube.com/watch?v=E-xUNlZi3rI
@@ -46,18 +46,25 @@
;; CUSTOMIZATION:
;;
;; `popper-reference-buffers': A list of major modes or regexps whose
-;; corresponding buffer major-modes or regexps (respectively) should be treated
-;; as popups.
+;; corresponding buffer major-modes or regexps (respectively) should be
+;; treated as popups.
;;
;; `popper-mode-line': String or sexp to show in the mode-line of
;; popper. Setting this to nil removes the mode-line entirely from
;; popper.
;;
-;; `popper-group-function': Function that returns the context a popup should be
-;; shown in. The context is a string or symbol used to group together a set of
-;; buffers and their associated popups, such as the project root. See
-;; documentation for available options.
-
+;; `popper-group-function': Function that returns the context a popup
+;; should be shown in. The context is a string or symbol used to group
+;; together a set of buffers and their associated popups, such as the
+;; project root. Customize for available options.
+;;
+;; `popper-display-control': This package summons windows defined by the
+;; user as popups by simply calling `display-buffer'. By default,
+;; it will display your popups in a non-obtrusive way. If you want
+;; Popper to display popups according to window rules you specify in
+;; `display-buffer-alist' (or through a package like Shackle), set this
+;; variable to nil.
+;;
;;; Code:
(require 'cl-lib)
@@ -481,7 +488,11 @@ If BUFFER is not specified act on the current buffer
instead."
(interactive)
(cl-destructuring-bind ((win . buf) . rest) popper-open-popup-alist
(pop popper-open-popup-alist)
- (delete-window win)
+ (if (and (window-valid-p win)
+ (window-parent win))
+ (delete-window win)
+ (if (frame-parent)
+ (delete-frame)))
(kill-buffer buf)))
;;;###autoload
- [elpa] externals/popper 3212241316 083/102: Fix #29: Error while modifying mode line. (#30), (continued)
- [elpa] externals/popper 3212241316 083/102: Fix #29: Error while modifying mode line. (#30), ELPA Syncer, 2023/09/08
- [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 <=
- [elpa] externals/popper 268ac30047 046/102: More comprehensive delete-popup function + see, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 4c51182f5f 051/102: Fix error in `popper-group-by-project` (#10), ELPA Syncer, 2023/09/08
- [elpa] externals/popper 8dd55742d8 054/102: Updated Readme for readability + handle project-current when nil, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 8bd65b4267 057/102: Changed popup-delete functionality to use quit-window, ELPA Syncer, 2023/09/08
- [elpa] externals/popper a604447f65 058/102: Merge branch 'feature': Add popup hiding, ELPA Syncer, 2023/09/08
- [elpa] externals/popper cc7336c4e3 060/102: Checkdoc fixes, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 8c50bb3254 062/102: Added TODO in delete-popup for later, ELPA Syncer, 2023/09/08
- [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