From: Sean Whitton Date: Wed, 2 Oct 2024 01:15:46 +0000 (+0800) Subject: Fix inconsistency in value of rcirc-activity-string X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=597bec1370d1a7569c1a85d2afdbcd4d96222bba;p=emacs.git 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) --- 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)))