[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 6cdf064 365/449: Remove useless use of progn, up
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 6cdf064 365/449: Remove useless use of progn, update usage status function |
Date: |
Fri, 27 Nov 2020 23:16:12 -0500 (EST) |
branch: externals/gnorb
commit 6cdf06459b7586f175fde32b9570440c4d284784
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Remove useless use of progn, update usage status function
* packages/gnorb/gnorb-registry.el (gnorb-report-tracking-usage): Not
necessary. Also `gnorb-refresh-usage-status' needs to accept
optional arguments.
---
gnorb-registry.el | 37 ++++++++++++++++++-------------------
1 file changed, 18 insertions(+), 19 deletions(-)
diff --git a/gnorb-registry.el b/gnorb-registry.el
index e6c9e8f..2b3912c 100644
--- a/gnorb-registry.el
+++ b/gnorb-registry.el
@@ -212,25 +212,24 @@ key."
registry to track message/heading associations. Reports the
number of tracked messages, the number of tracked headings, and how much of
the registry is occupied."
(interactive)
- (progn
- (pop-to-buffer
- (get-buffer-create "*Gnorb Usage*")
- '(nil . ((window-height . 10))))
- (gnorb-refresh-usage-status)
- (special-mode)
- (setq revert-buffer-function #'gnorb-refresh-usage-status)
- (local-set-key (kbd "d") (lambda ()
- (interactive)
- (progn
- (gnorb-flush-dead-associations)
- (gnorb-refresh-usage-status))))
- (local-set-key (kbd "D") (lambda ()
- (interactive)
- (progn
- (gnorb-flush-dead-associations t)
- (gnorb-refresh-usage-status))))))
-
-(defun gnorb-refresh-usage-status ()
+ (pop-to-buffer
+ (get-buffer-create "*Gnorb Usage*")
+ '(nil . ((window-height . 10))))
+ (gnorb-refresh-usage-status)
+ (special-mode)
+ (setq revert-buffer-function #'gnorb-refresh-usage-status)
+ (local-set-key (kbd "d") (lambda ()
+ (interactive)
+ (progn
+ (gnorb-flush-dead-associations)
+ (gnorb-refresh-usage-status))))
+ (local-set-key (kbd "D") (lambda ()
+ (interactive)
+ (progn
+ (gnorb-flush-dead-associations t)
+ (gnorb-refresh-usage-status)))))
+
+(defun gnorb-refresh-usage-status (&optional _ignore-auto _noconfirm)
"Clear and re-format the *Gnorb Usage* buffer."
(let ((messages (length (gnorb-registry-tracked-messages)))
(headings (length (gnorb-registry-tracked-headings)))
- [elpa] externals/gnorb 7fcde77 328/449: Handle renaming of Org variable, (continued)
- [elpa] externals/gnorb 7fcde77 328/449: Handle renaming of Org variable, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d754d2f 336/449: Fixing `gnorb-bbdb-postings-styles', Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 984d5e6 338/449: gnorb-org.el: Don't use nreverse, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7ea06f9 339/449: Delete gnorb-prompt-for-bbdb-record, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e2afc4b 355/449: Switch on lexical binding across the board, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7d14112 358/449: Trying to fix issue #30., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb c1014ac 359/449: Merge pull request #31 from berhoel/master, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 64e72d6 360/449: Use :package-version, not :version, on defcustom, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3090162 361/449: Bump version to 1.1.4, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb c0b3090 362/449: Fix email subtree command, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 6cdf064 365/449: Remove useless use of progn, update usage status function,
Stefan Monnier <=
- [elpa] externals/gnorb 6a3ea57 368/449: Update documentation, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d61d9b8 370/449: Remove unnecessary with-no-warnings, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a370e64 372/449: Rename msg-id-to-group to msg-id-request-head, refactor, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 943606f 373/449: Bump Gnorb version to 1.2, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e7fa2d2 378/449: New copy-message-text behavior, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8509773 376/449: Don't let the Gnus summary format group create registry entries, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4b215ae 379/449: gnorb-utils needs macros from nnheader, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4a732d9 384/449: Tweak text search in gnorb-org-view, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d304558 383/449: Fix replying to most recent tracked message; bump to 1.3.2, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b630235 390/449: Gnorb: Tweaks to gnorb-org-extract-mail-tracking, Stefan Monnier, 2020/11/27