GNU bug report logs -
#68334
29.1; tool-bar-make-keymap-1 does not work on terminals
Previous Next
Reported by: Jared Finder <jared <at> finder.org>
Date: Mon, 8 Jan 2024 21:40:01 UTC
Severity: normal
Found in version 29.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On 2024-01-09 04:40, Eli Zaretskii wrote:
>> Date: Mon, 08 Jan 2024 13:39:25 -0800
>> From: Jared Finder via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> I'd like tool-bar-make-keymap-1 to return a sensible keymap on
>> terminals. This is only a small change from current code, patch
>> attached.
>
> I don't see any problems with the change, but please add comments
> there explaining that some parts of the code are supposed to work on
> frames where images cannot be displayed, because it is very easy to
> mistakenly assume this only needs to work on GUI frames.
New patch attached with comment added.
For the other discussions about making per-window tool bars part of
core, I expect a handful of additional patches so I can file a separate
bug report if that makes tracking things easier.
> Btw, what happens if display-images-p returns non-nil, but the session
> doesn't support images of the type used for tool-bar icons?
Then a keybind is generated with no image spec because find-image will
not find any supported image. Such binds are silently ignored by the
current tool bar logic on PGTK and Mac builds. You can see this
behavior today in M-x customize, where the " Toggle hiding all values "
bind is not displayed. I was going to report this as a separate bug
because this behavior seems poor -- I think a text only tool bar button
would be preferred.
-- MJF
[0001-lisp-tool-bar.el-tool-bar-make-keymap-1-Populate-on-.patch (text/x-diff, attachment)]
This bug report was last modified 1 year and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.