[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/notmuch-indicator 83e1bd3ceb 07/36: Tweak code to avoid
From: |
ELPA Syncer |
Subject: |
[elpa] externals/notmuch-indicator 83e1bd3ceb 07/36: Tweak code to avoid multiple timers |
Date: |
Wed, 21 Sep 2022 00:59:20 -0400 (EDT) |
branch: externals/notmuch-indicator
commit 83e1bd3ceb0e742ea2656ba65245b314c31dc232
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Tweak code to avoid multiple timers
This seems to work, though it's been a long day...
---
notmuch-indicator.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/notmuch-indicator.el b/notmuch-indicator.el
index 10487b54a0..0db1c5078c 100644
--- a/notmuch-indicator.el
+++ b/notmuch-indicator.el
@@ -102,14 +102,12 @@ These form a string like: @50 🤡10."
(eq (timer--function timer) 'notmuch-indicator--indicator))
timer-list)))
-;; TODO 2022-09-19: If length of `notmuch-indicator--running-p' is > 1
-;; we need to reduce it to 1.
(defun notmuch-indicator--run ()
"Run the timer with a delay, starting it if necessary.
The delay is specified by `notmuch-indicator-refresh-count'."
(unless (notmuch-indicator--running-p)
- (notmuch-indicator--indicator))
- (run-at-time t notmuch-indicator-refresh-count
#'notmuch-indicator--indicator))
+ (notmuch-indicator--indicator)
+ (run-at-time t notmuch-indicator-refresh-count
#'notmuch-indicator--indicator)))
;;;###autoload
(define-minor-mode notmuch-indicator-mode
- [elpa] branch externals/notmuch-indicator created (now f4b46313c3), ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator 1ef5c043c6 01/36: Add prototype, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator dde1c6cb3d 03/36: Add TODO about not running many timers, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator 94e36aea91 06/36: Remove TODO about notmuch count --batch, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator 60ec338434 10/36: Fix typo in doc string, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator b749c09cb6 16/36: Hint at the notmuch-count(1) manual, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator 7d56164856 05/36: Add COPYING, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator 83e1bd3ceb 07/36: Tweak code to avoid multiple timers,
ELPA Syncer <=
- [elpa] externals/notmuch-indicator b141304bcb 04/36: Add README, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator d24ae8718a 14/36: Add outline headings, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator f716f06aea 11/36: Use ":label" instead of ":specifier", ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator e169f26958 19/36: Add notmuch-indicator-hide-empty-counters user option, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator b225981c47 20/36: Refine how spacing is done, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator 45120219c4 23/36: Tweak spacing in two defcustom, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator 55a759133d 02/36: Tweak notmuch-indicator-args, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator 9a536bf3be 08/36: Add :group to notmuch-indicator-refresh-count, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator 2b390022ad 09/36: BREAKING make notmuch-indicator-args use plists, ELPA Syncer, 2022/09/21
- [elpa] externals/notmuch-indicator d2edfafc38 15/36: Add user option to update indicator post-command, ELPA Syncer, 2022/09/21