emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cleaning up rcirc


From: Tassilo Horn
Subject: Re: Cleaning up rcirc
Date: Fri, 11 Jun 2021 13:10:55 +0200
User-agent: mu4e 1.5.13; emacs 28.0.50

Hi Philip,

>> No, not really.  `rcirc-update-activity-string' just updates
>> `rcirc-activity-string'.  Maybe that should call
>>
>>   (force-mode-line-update t)
>>
>> at least if the new and old activity string aren't equal?
>
> I cannot reproduce the issue (at least in my GUI instance, I'll take a
> look at TUI). Can you observe it making a difference?

Yes, with this patch it works for me on my TUI instance.  (I'm not sure
if that's the right thing to do, though.)

--8<---------------cut here---------------start------------->8---
modified   lisp/net/rcirc.el
@@ -2154,7 +2154,8 @@ rcirc-next-active-buffer
                    (concat
                     "  Type C-u " (key-description (this-command-keys))
                     " for low priority activity.")
-                 "")))))
+                 "")))
+    (rcirc-update-activity-string)))

 (define-obsolete-variable-alias 'rcirc-activity-hooks
   'rcirc-activity-functions "24.3")
@@ -2229,7 +2230,8 @@ rcirc-update-activity-string
                 ((not (null (rcirc-process-list)))
                  "[]")
                 (t "[]")))
-    (run-hooks 'rcirc-update-activity-string-hook)))
+    (run-hooks 'rcirc-update-activity-string-hook)
+    (force-mode-line-update t)))

 (defun rcirc-activity-string (buffers)
   "Generate activity string for all BUFFERS."
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]