GNU bug report logs -
#74740
31.0.50; tty menus not displaying separators
Previous Next
Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Date: Sun, 8 Dec 2024 17:35:02 UTC
Severity: normal
Found in version 31.0.50
Fixed in version 31.1
Done: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74740 in the body.
You can then email your comments to 74740 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#74740
; Package
emacs
.
(Sun, 08 Dec 2024 17:35:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gerd Möllmann <gerd.moellmann <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 08 Dec 2024 17:35:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
To see this, emacs -nw -q and open a menu from the menubar. Simple
separators there are displayed as "--".
More generally, all separator types are displayed as they appear in the
menu item definition, '--double-line' as "--double-line" and so on.
In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.1.0) of 2024-12-08
built on pro2
Repository revision: 9a0e26b88616946d2512680859166caa2675b30a
Repository branch: master
System Description: macOS 15.1.1
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#74740
; Package
emacs
.
(Sun, 08 Dec 2024 18:37:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 74740 <at> debbugs.gnu.org (full text, mbox):
> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
> Date: Sun, 08 Dec 2024 18:34:33 +0100
>
> To see this, emacs -nw -q and open a menu from the menubar. Simple
> separators there are displayed as "--".
What did you expect instead? I think this always worked like that on
TTY frames.
> More generally, all separator types are displayed as they appear in the
> menu item definition, '--double-line' as "--double-line" and so on.
What do you mean by that? where do we have such separators, and how do
you display the menus which show them? I don't think I see them in
the default menu bar.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#74740
; Package
emacs
.
(Sun, 08 Dec 2024 18:48:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 74740 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
>> Date: Sun, 08 Dec 2024 18:34:33 +0100
>>
>> To see this, emacs -nw -q and open a menu from the menubar. Simple
>> separators there are displayed as "--".
>
> What did you expect instead? I think this always worked like that on
> TTY frames.
>
>> More generally, all separator types are displayed as they appear in the
>> menu item definition, '--double-line' as "--double-line" and so on.
I expected a horizontal line for "--".
> What do you mean by that? where do we have such separators, and how do
> you display the menus which show them? I don't think I see them in
> the default menu bar.
Concerning the separator types, Elisp Info says
23.18.1.3 Menu Separators
.........................
A menu separator is a kind of menu item that doesn't display any
text--instead, it divides the menu into subparts with a horizontal line.
A separator looks like this in the menu keymap:
(menu-item SEPARATOR-TYPE)
where SEPARATOR-TYPE is a string starting with two or more dashes.
followed by a list of separator types, among them the --double-line I
mentioned.
One can get these from 3rd-party packages. Minion is an example, where
--double-line appears in a popup menu on the mode line.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#74740
; Package
emacs
.
(Sun, 08 Dec 2024 19:06:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 74740 <at> debbugs.gnu.org (full text, mbox):
> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
> Cc: 74740 <at> debbugs.gnu.org
> Date: Sun, 08 Dec 2024 19:46:35 +0100
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
> >> Date: Sun, 08 Dec 2024 18:34:33 +0100
> >>
> >> To see this, emacs -nw -q and open a menu from the menubar. Simple
> >> separators there are displayed as "--".
> >
> > What did you expect instead? I think this always worked like that on
> > TTY frames.
> >
> >> More generally, all separator types are displayed as they appear in the
> >> menu item definition, '--double-line' as "--double-line" and so on.
>
> I expected a horizontal line for "--".
>
> > What do you mean by that? where do we have such separators, and how do
> > you display the menus which show them? I don't think I see them in
> > the default menu bar.
>
> Concerning the separator types, Elisp Info says
>
> 23.18.1.3 Menu Separators
> .........................
>
> A menu separator is a kind of menu item that doesn't display any
> text--instead, it divides the menu into subparts with a horizontal line.
> A separator looks like this in the menu keymap:
>
> (menu-item SEPARATOR-TYPE)
>
> where SEPARATOR-TYPE is a string starting with two or more dashes.
>
> followed by a list of separator types, among them the --double-line I
> mentioned.
>
> One can get these from 3rd-party packages. Minion is an example, where
> --double-line appears in a popup menu on the mode line.
This was never supported in TTY menus (I think I was completely
unaware of this feature when I wrote the code). Patches to support it
will be most welcome.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#74740
; Package
emacs
.
(Mon, 09 Dec 2024 04:31:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 74740 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
>> Cc: 74740 <at> debbugs.gnu.org
>> Date: Sun, 08 Dec 2024 19:46:35 +0100
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> >> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
>> >> Date: Sun, 08 Dec 2024 18:34:33 +0100
>> >>
>> >> To see this, emacs -nw -q and open a menu from the menubar. Simple
>> >> separators there are displayed as "--".
>> >
>> > What did you expect instead? I think this always worked like that on
>> > TTY frames.
>> >
>> >> More generally, all separator types are displayed as they appear in the
>> >> menu item definition, '--double-line' as "--double-line" and so on.
>>
>> I expected a horizontal line for "--".
>>
>> > What do you mean by that? where do we have such separators, and how do
>> > you display the menus which show them? I don't think I see them in
>> > the default menu bar.
>>
>> Concerning the separator types, Elisp Info says
>>
>> 23.18.1.3 Menu Separators
>> .........................
>>
>> A menu separator is a kind of menu item that doesn't display any
>> text--instead, it divides the menu into subparts with a horizontal line.
>> A separator looks like this in the menu keymap:
>>
>> (menu-item SEPARATOR-TYPE)
>>
>> where SEPARATOR-TYPE is a string starting with two or more dashes.
>>
>> followed by a list of separator types, among them the --double-line I
>> mentioned.
>>
>> One can get these from 3rd-party packages. Minion is an example, where
>> --double-line appears in a popup menu on the mode line.
>
> This was never supported in TTY menus (I think I was completely
> unaware of this feature when I wrote the code). Patches to support it
> will be most welcome.
The following patch displays "--" for all separator types. I'd say
that's good enough, WDYT?
[0001-Support-menu-separator-types-in-tty-menus-bug-74740.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#74740
; Package
emacs
.
(Mon, 09 Dec 2024 13:55:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 74740 <at> debbugs.gnu.org (full text, mbox):
> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
> Cc: 74740 <at> debbugs.gnu.org
> Date: Mon, 09 Dec 2024 05:29:43 +0100
>
> >> 23.18.1.3 Menu Separators
> >> .........................
> >>
> >> A menu separator is a kind of menu item that doesn't display any
> >> text--instead, it divides the menu into subparts with a horizontal line.
> >> A separator looks like this in the menu keymap:
> >>
> >> (menu-item SEPARATOR-TYPE)
> >>
> >> where SEPARATOR-TYPE is a string starting with two or more dashes.
> >>
> >> followed by a list of separator types, among them the --double-line I
> >> mentioned.
> >>
> >> One can get these from 3rd-party packages. Minion is an example, where
> >> --double-line appears in a popup menu on the mode line.
> >
> > This was never supported in TTY menus (I think I was completely
> > unaware of this feature when I wrote the code). Patches to support it
> > will be most welcome.
>
> The following patch displays "--" for all separator types. I'd say
> that's good enough, WDYT?
Yes, LGTM, please install. But please add a FIXME comment there
mentioning the feature and inviting its implementation.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#74740
; Package
emacs
.
(Mon, 09 Dec 2024 14:22:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 74740 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
>> Cc: 74740 <at> debbugs.gnu.org
>> Date: Mon, 09 Dec 2024 05:29:43 +0100
>>
>> >> 23.18.1.3 Menu Separators
>> >> .........................
>> >>
>> >> A menu separator is a kind of menu item that doesn't display any
>> >> text--instead, it divides the menu into subparts with a horizontal line.
>> >> A separator looks like this in the menu keymap:
>> >>
>> >> (menu-item SEPARATOR-TYPE)
>> >>
>> >> where SEPARATOR-TYPE is a string starting with two or more dashes.
>> >>
>> >> followed by a list of separator types, among them the --double-line I
>> >> mentioned.
>> >>
>> >> One can get these from 3rd-party packages. Minion is an example, where
>> >> --double-line appears in a popup menu on the mode line.
>> >
>> > This was never supported in TTY menus (I think I was completely
>> > unaware of this feature when I wrote the code). Patches to support it
>> > will be most welcome.
>>
>> The following patch displays "--" for all separator types. I'd say
>> that's good enough, WDYT?
>
> Yes, LGTM, please install. But please add a FIXME comment there
> mentioning the feature and inviting its implementation.
Thanks, pushed to master, and closing.
bug marked as fixed in version 31.1, send any further explanations to
74740 <at> debbugs.gnu.org and Gerd Möllmann <gerd.moellmann <at> gmail.com>
Request was from
Gerd Möllmann <gerd.moellmann <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 09 Dec 2024 14:22:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 07 Jan 2025 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 221 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.