[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 e6a37869c8d 1/3: Fix inconsistency in value of rcirc-activity-s
From: |
Sean Whitton |
Subject: |
emacs-30 e6a37869c8d 1/3: Fix inconsistency in value of rcirc-activity-string |
Date: |
Tue, 1 Oct 2024 21:23:39 -0400 (EDT) |
branch: emacs-30
commit e6a37869c8dcbd17b01dab66c5588f087a33ddf0
Author: Sean Whitton <spwhitton@spwhitton.name>
Commit: Sean Whitton <spwhitton@spwhitton.name>
Fix inconsistency in value of rcirc-activity-string
* lisp/net/rcirc.el (rcirc-update-activity-string): Consistently
don't display anything if there aren't any IRC connections.
---
lisp/net/rcirc.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 659035d4acb..7095da34ec0 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -2537,9 +2537,14 @@ activity. Only run if the buffer is not visible and
(rcirc-activity-string lopri)
")"))
(and hipri "]")))
+ ;; Consistently don't display anything if there aren't
+ ;; any IRC connections. Otherwise, whether we display
+ ;; "[]" or not depends on whether or not this function
+ ;; happens to have been called in this session yet.
((not (null (rcirc-process-list)))
"[]")
- (t "[]")))
+ (t
+ "")))
(run-hooks 'rcirc-update-activity-string-hook)
(force-mode-line-update t)))