From 597bec1370d1a7569c1a85d2afdbcd4d96222bba Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 2 Oct 2024 09:15:46 +0800 Subject: [PATCH] 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. (cherry picked from commit e6a37869c8dcbd17b01dab66c5588f087a33ddf0) --- 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 0820191e9e7..35a14f7f93b 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -2521,9 +2521,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))) -- 2.39.2