GNU bug report logs -
#42957
28.0.50; Tool bar button click doesn't update the tool bar immediately
Previous Next
Reported by: Mauro Aranda <maurooaranda <at> gmail.com>
Date: Thu, 20 Aug 2020 14:53:01 UTC
Severity: normal
Tags: fixed
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 42957 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Mauro Aranda <maurooaranda <at> gmail.com> writes:
>
>> 4. Now click the foo-refresh button. I expected the button to get
>> disabled immediately, but that doesn't happen.
>> 5. Click in the buffer, and the button will be disabled.
>
> Yup; this problem is still present on the trunk.
>
>> Could Emacs update the tool bar immediately when the user clicks on a
>> tool bar button? Or am I forced (no pun intended) to use
>> `force-mode-line-update' in the commands that may alter the
>> enable/disable state of the tool bar buttons, even when the commands
>> run because of a tool bar button click?
>
> I don't know, but if Emacs can't do that, then this should be
> documented, at least. This is documented in other context, like:
>
> --
> The menu bar does not recalculate which items are enabled every time you
> look at a menu. This is because the X toolkit requires the whole tree
> of menus in advance. To force recalculation of the menu bar, call
> @code{force-mode-line-update} (@pxref{Mode Line Format}).
> --
>
> But not in the tool bar sections, as far as I can see. But I guess if
> the menu bar doesn't update automatically on enabling, then it would
> perhaps be surprising that tool bars do.
>
> So I think we should just document this quirk? Any opinions?
Hi Lars,
Thanks for taking a look, and sorry it took me so long to reply back.
If it can't be done easily, I'm fine with closing this report as a
wontfix. It doesn't annoy me too much to put some
force-mode-line-update calls here and there.
This bug report was last modified 4 years and 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.