bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#43397: 28.0.50; Adding tool bar items: update tool bar


From: Stefan Monnier
Subject: bug#43397: 28.0.50; Adding tool bar items: update tool bar
Date: Fri, 27 Aug 2021 18:04:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen [2021-08-27 19:40:13] wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>> Then evaluate the forms and press F5.  The tool bar won't change.
>
> This was a year ago, but I can still reproduce this on the current
> trunk.  Here's an even easier variation of the recipe:
>
> (progn
>   (blink-cursor-mode -1)
>   (global-eldoc-mode -1)
>
>   (defun myfun ()
>     (interactive)
>     (tool-bar-add-item "redo" 'undo-redo 'undo-redo))
>
>   (global-set-key [f5] 'myfun))
>
> And then M-: (garbage-collect) makes the tool bar update.
> However!  The garbage-collect in itself isn't sufficient to trigger it.

Of course, it's the use of the minibuffer (as part of `M-:`) which
triggered it.


        Stefan






reply via email to

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