[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/notmuch-indicator fbd9141041: Make notmuch-indicator-re
From: |
ELPA Syncer |
Subject: |
[elpa] externals/notmuch-indicator fbd9141041: Make notmuch-indicator-refresh a public function |
Date: |
Tue, 11 Oct 2022 11:58:04 -0400 (EDT) |
branch: externals/notmuch-indicator
commit fbd91410413db84a26a9a0d7ab9f49843440f937
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make notmuch-indicator-refresh a public function
Normally, I wouldn't add the obsolete alias, but there may be people
using the old function so better ease them into this breaking change.
---
notmuch-indicator.el | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/notmuch-indicator.el b/notmuch-indicator.el
index 4ad39e4ce7..3c9fcd4200 100644
--- a/notmuch-indicator.el
+++ b/notmuch-indicator.el
@@ -241,12 +241,17 @@ The delay is specified by
`notmuch-indicator-refresh-count'."
(notmuch-indicator--indicator)
(run-at-time t notmuch-indicator-refresh-count
#'notmuch-indicator--indicator)))
-(defun notmuch-indicator--refresh ()
+(defun notmuch-indicator-refresh ()
"Refresh the active indicator."
(when (notmuch-indicator--running-p)
(cancel-function-timers #'notmuch-indicator--indicator)
(notmuch-indicator--run)))
+(define-obsolete-function-alias
+ 'notmuch-indicator--refresh
+ 'notmuch-indicator-refresh
+ "0.3.0")
+
;;;###autoload
(define-minor-mode notmuch-indicator-mode
"Display mode line indicator with `notmuch-count(1)' output.
@@ -262,11 +267,11 @@ option `notmuch-indicator-refresh-count'.."
(progn
(notmuch-indicator--run)
(dolist (fn notmuch-indicator-force-refresh-commands)
- (advice-add fn :after #'notmuch-indicator--refresh)))
+ (advice-add fn :after #'notmuch-indicator-refresh)))
(cancel-function-timers #'notmuch-indicator--indicator)
(setq global-mode-string (delq 'notmuch-indicator-string
global-mode-string))
(dolist (fn notmuch-indicator-force-refresh-commands)
- (advice-remove fn #'notmuch-indicator--refresh))
+ (advice-remove fn #'notmuch-indicator-refresh))
(force-mode-line-update t)))
(provide 'notmuch-indicator)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/notmuch-indicator fbd9141041: Make notmuch-indicator-refresh a public function,
ELPA Syncer <=