[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/popper a93ff38ab6 098/102: popper: Assign copyright to
From: |
ELPA Syncer |
Subject: |
[elpa] externals/popper a93ff38ab6 098/102: popper: Assign copyright to FSF |
Date: |
Fri, 8 Sep 2023 15:58:57 -0400 (EDT) |
branch: externals/popper
commit a93ff38ab648eefa1a8eca393b0a357ff41411a0
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
popper: Assign copyright to FSF
* popper.el, popper-echo.el: Assign copyright to FSF in
preparation for ELPA.
* popper.el (popper--suppress-popups, popper-toggle-latest,
popper--classify-type):
- Clean up implementation of `popper--classify-type'. Using
cl-labels is much than defining top level defuns.
- Bump version in minor-mode definition
- Require cl-lib macros at compile time
- Comment formatting tweaks.
---
popper-echo.el | 2 +-
popper.el | 74 ++++++++++++++++++++++++++--------------------------------
2 files changed, 34 insertions(+), 42 deletions(-)
diff --git a/popper-echo.el b/popper-echo.el
index 92b3f5031c..d89016a967 100644
--- a/popper-echo.el
+++ b/popper-echo.el
@@ -1,6 +1,6 @@
;;; popper-echo.el --- Show a popup list in the echo area when cycling them
-*- lexical-binding: t -*-
-;; Copyright (C) 2021 Karthik Chikmagalur
+;; Copyright (C) 2023 Free Software Foundation, Inc.
;; Author: Karthik Chikmagalur <karthik.chikmagalur@gmail.com>
;; Version: 0.45
diff --git a/popper.el b/popper.el
index d8bd3e9a6c..2c392d6d7d 100644
--- a/popper.el
+++ b/popper.el
@@ -1,9 +1,9 @@
;;; popper.el --- Summon and dismiss buffers as popups -*- lexical-binding: t
-*-
-;; Copyright (C) 2021 Karthik Chikmagalur
+;; Copyright (C) 2023 Free Software Foundation, Inc.
;; Author: Karthik Chikmagalur <karthik.chikmagalur@gmail.com>
-;; Version: 0.45
+;; Version: 0.4.5
;; Package-Requires: ((emacs "26.1"))
;; Keywords: convenience
;; URL: https://github.com/karthink/popper
@@ -72,8 +72,9 @@
;;; Code:
-(require 'cl-lib)
-(require 'subr-x)
+(eval-when-compile
+ (require 'cl-lib)
+ (require 'subr-x))
(declare-function project-root "project")
(declare-function project-current "project")
@@ -513,9 +514,9 @@ the screen by `display-buffer' will not all be displayed."
(defun popper-toggle-latest (&optional arg)
"Toggle visibility of the last opened popup window.
-With prefix ARG \\[universal-argument], toggle visibility of the next popup
windows
-while keeping the current one (FIXME: This behavior can be
-inconsistent.)
+With prefix ARG \\[universal-argument], toggle visibility of the
+next popup windows while keeping the current one (FIXME: This
+behavior can be inconsistent.)
With a double prefix ARG \\[universal-argument]
\\[universal-argument], toggle all popup-windows. Note that only
@@ -619,15 +620,11 @@ If BUFFER is not specified act on the current buffer
instead."
(seq-some (lambda (pred) (funcall pred buf))
popper--suppressed-predicates)))
(defun popper--suppress-popups ()
- "TODO.
-
- Suppress open popups in the user-defined
+ "Suppress open popups in the user-defined
`popper-suppress-buffers' list. This should run after
`popper--update-popups' in `window-configuration-change-hook'."
-
;; Check if popup-status for any open popup is 'suppressed. If yes, change
;; its popup-status to 'popup and hide it.
-
(let ((configuration-changed-p))
(cl-loop for (win . buf) in popper-open-popup-alist do
(when (eq (buffer-local-value 'popper-popup-status buf)
'suppressed)
@@ -644,36 +641,31 @@ If BUFFER is not specified act on the current buffer
instead."
(when configuration-changed-p
(popper--update-popups))))
-(declare-function popper--classify-type "popper")
-(declare-function popper--insert-type "popper")
-
(defun popper--set-reference-vars ()
"Unpack `popper-reference-buffers' to set popper--reference- variables."
- (defun popper--classify-type (elm)
- (pcase elm
- ((pred stringp) 'name)
- ((and (pred symbolp)
- (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)))
-
- (defun popper--insert-type (elm)
- (pcase (popper--classify-type elm)
- ('name (cl-pushnew elm popper--reference-names))
- ('mode (cl-pushnew elm popper--reference-modes))
- ('pred (cl-pushnew elm popper--reference-predicates))
- ('cons (when (eq (cdr elm) 'hide)
- (pcase (popper--classify-type (car elm))
- ('name (cl-pushnew (car elm) popper--suppressed-names))
- ('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)))
+ (cl-labels ((popper--classify-type
+ (elm) (pcase elm
+ ((pred stringp) 'name)
+ ((and (pred symbolp)
+ (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)))
+ (popper--insert-type
+ (elm) (pcase (popper--classify-type elm)
+ ('name (cl-pushnew elm popper--reference-names))
+ ('mode (cl-pushnew elm popper--reference-modes))
+ ('pred (cl-pushnew elm popper--reference-predicates))
+ ('cons (when (eq (cdr elm) 'hide)
+ (pcase (popper--classify-type (car elm))
+ ('name (cl-pushnew (car elm)
popper--suppressed-names))
+ ('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))))
;;;###autoload
(define-minor-mode popper-mode
@@ -682,7 +674,7 @@ windows as popups, a class of window that can be summoned or
dismissed with a command. See the customization options for
details on how to designate buffer types as popups."
:global t
- :version "0.40"
+ :version "0.4.5"
:lighter ""
:group 'popper
:keymap (let ((map (make-sparse-keymap))) map)
- [elpa] externals/popper 598571f025 041/102: Started work on buffer-hiding feature, (continued)
- [elpa] externals/popper 598571f025 041/102: Started work on buffer-hiding feature, ELPA Syncer, 2023/09/08
- [elpa] externals/popper b120c6836c 042/102: extract window height determining function, ELPA Syncer, 2023/09/08
- [elpa] externals/popper c96915cb77 043/102: Merge commit 'b120c68' into feature, ELPA Syncer, 2023/09/08
- [elpa] externals/popper cd975ac5b8 047/102: Updated README with new features, popups by predicate, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 1312c0f0f6 053/102: Added video demo of buffer hiding, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 851d838821 065/102: Extracted popper-echo into a separate library, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 7afd502b3b 068/102: Fixed popper-echo display when the group is a symbol, ELPA Syncer, 2023/09/08
- [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 <=
- [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, 2023/09/08
- [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