GNU bug report logs - #75500
[PATCH] Fix keybinding alignment in `tmm-menubar'

Previous Next

Package: emacs;

Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>

Date: Sat, 11 Jan 2025 17:44:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

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 75500 in the body.
You can then email your comments to 75500 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#75500; Package emacs. (Sat, 11 Jan 2025 17:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Manuel Giraud <manuel <at> ledu-giraud.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 11 Jan 2025 17:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Fix keybinding alignment in `tmm-menubar'
Date: Sat, 11 Jan 2025 18:42:54 +0100
[Message part 1 (text/plain, inline)]
Tags: patch

Hi,

In tmm-menubar, for entries prepended by a numerical shortcut, the
associated keybinding ends up being misaligned.  For instance, you can
see that in the eww menu for the entry "List bookmarks".  This patch
fixes this misalignment.


In GNU Emacs 31.0.50 (build 21, x86_64-unknown-openbsd7.6, X toolkit) of
 2025-01-08 built on computer
Repository revision: 631f43d2bbe403e48d63d963281f1d948dee5263
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101015
System Description: OpenBSD computer 7.6 GENERIC.MP#494 amd64

Configured using:
 'configure CC=egcc CPPFLAGS=-I/usr/local/include
 LDFLAGS=-L/usr/local/lib MAKEINFO=gmakeinfo --prefix=/home/manuel/emacs
 --bindir=/home/manuel/bin --with-x-toolkit=lucid
 --with-toolkit-scroll-bars=no --without-cairo
 --without-compress-install'

[0001-Fix-keybinding-alignment-in-tmm-menubar.patch (text/patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Manuel Giraud

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75500; Package emacs. (Sat, 18 Jan 2025 10:10:02 GMT) Full text and rfc822 format available.

Message #8 received at 75500 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Manuel Giraud <manuel <at> ledu-giraud.fr>
Cc: 75500 <at> debbugs.gnu.org
Subject: Re: bug#75500: [PATCH] Fix keybinding alignment in `tmm-menubar'
Date: Sat, 18 Jan 2025 12:09:24 +0200
> Date: Sat, 11 Jan 2025 18:42:54 +0100
> From:  Manuel Giraud via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> In tmm-menubar, for entries prepended by a numerical shortcut, the
> associated keybinding ends up being misaligned.  For instance, you can
> see that in the eww menu for the entry "List bookmarks".  This patch
> fixes this misalignment.

Thanks.  However, I couldn't see any misalignments in "List
bookmarks".  Could you perhaps show a recipe for reproducing this,
starting from "emacs -Q"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75500; Package emacs. (Sat, 18 Jan 2025 14:12:02 GMT) Full text and rfc822 format available.

Message #11 received at 75500 <at> debbugs.gnu.org (full text, mbox):

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 75500 <at> debbugs.gnu.org
Subject: Re: bug#75500: [PATCH] Fix keybinding alignment in `tmm-menubar'
Date: Sat, 18 Jan 2025 15:11:10 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Sat, 11 Jan 2025 18:42:54 +0100
>> From:  Manuel Giraud via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>> 
>> In tmm-menubar, for entries prepended by a numerical shortcut, the
>> associated keybinding ends up being misaligned.  For instance, you can
>> see that in the eww menu for the entry "List bookmarks".  This patch
>> fixes this misalignment.
>
> Thanks.  However, I couldn't see any misalignments in "List
> bookmarks".  Could you perhaps show a recipe for reproducing this,
> starting from "emacs -Q"?

You're right.  For me, the 'b' shortcut was "taken" for the "Back to
previous page" entry.  Anyway, you should see the misalignment for the
"List cookies" entry with the following recipe:

      - emacs -Q
      - M-: (setopt tmm-shortcut-inside-entry t) <RET>
      - M-x eww <RET>
      - gnu.org <RET>
      - M-x tmm-menubar <RET> E
-- 
Manuel Giraud




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75500; Package emacs. (Sat, 18 Jan 2025 15:19:02 GMT) Full text and rfc822 format available.

Message #14 received at 75500 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Manuel Giraud <manuel <at> ledu-giraud.fr>
Cc: 75500 <at> debbugs.gnu.org
Subject: Re: bug#75500: [PATCH] Fix keybinding alignment in `tmm-menubar'
Date: Sat, 18 Jan 2025 17:18:07 +0200
> From: Manuel Giraud <manuel <at> ledu-giraud.fr>
> Cc: 75500 <at> debbugs.gnu.org
> Date: Sat, 18 Jan 2025 15:11:10 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> Date: Sat, 11 Jan 2025 18:42:54 +0100
> >> From:  Manuel Giraud via "Bug reports for GNU Emacs,
> >>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >> 
> >> In tmm-menubar, for entries prepended by a numerical shortcut, the
> >> associated keybinding ends up being misaligned.  For instance, you can
> >> see that in the eww menu for the entry "List bookmarks".  This patch
> >> fixes this misalignment.
> >
> > Thanks.  However, I couldn't see any misalignments in "List
> > bookmarks".  Could you perhaps show a recipe for reproducing this,
> > starting from "emacs -Q"?
> 
> You're right.  For me, the 'b' shortcut was "taken" for the "Back to
> previous page" entry.  Anyway, you should see the misalignment for the
> "List cookies" entry with the following recipe:
> 
>       - emacs -Q
>       - M-: (setopt tmm-shortcut-inside-entry t) <RET>
>       - M-x eww <RET>
>       - gnu.org <RET>
>       - M-x tmm-menubar <RET> E

OK, I see it now, thanks.

Coming back to the patch: please make sure the doc string of the
function you are adding is according to our conventions (first line is
a single complete sentence), and please explain in the comments _why_
this shortening is needed and why exactly 2 spaces.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75500; Package emacs. (Sat, 18 Jan 2025 16:31:01 GMT) Full text and rfc822 format available.

Message #17 received at 75500 <at> debbugs.gnu.org (full text, mbox):

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 75500 <at> debbugs.gnu.org
Subject: Re: bug#75500: [PATCH] Fix keybinding alignment in `tmm-menubar'
Date: Sat, 18 Jan 2025 17:30:29 +0100
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Manuel Giraud <manuel <at> ledu-giraud.fr>
>> Cc: 75500 <at> debbugs.gnu.org
>> Date: Sat, 18 Jan 2025 15:11:10 +0100
>> 
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>> 
>> >> Date: Sat, 11 Jan 2025 18:42:54 +0100
>> >> From:  Manuel Giraud via "Bug reports for GNU Emacs,
>> >>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>> >> 
>> >> In tmm-menubar, for entries prepended by a numerical shortcut, the
>> >> associated keybinding ends up being misaligned.  For instance, you can
>> >> see that in the eww menu for the entry "List bookmarks".  This patch
>> >> fixes this misalignment.
>> >
>> > Thanks.  However, I couldn't see any misalignments in "List
>> > bookmarks".  Could you perhaps show a recipe for reproducing this,
>> > starting from "emacs -Q"?
>> 
>> You're right.  For me, the 'b' shortcut was "taken" for the "Back to
>> previous page" entry.  Anyway, you should see the misalignment for the
>> "List cookies" entry with the following recipe:
>> 
>>       - emacs -Q
>>       - M-: (setopt tmm-shortcut-inside-entry t) <RET>
>>       - M-x eww <RET>
>>       - gnu.org <RET>
>>       - M-x tmm-menubar <RET> E
>
> OK, I see it now, thanks.
>
> Coming back to the patch: please make sure the doc string of the
> function you are adding is according to our conventions (first line is
> a single complete sentence), and please explain in the comments _why_
> this shortening is needed and why exactly 2 spaces.

Do you meant like this?
[0001-Fix-keybinding-alignment-in-tmm-menubar.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Manuel Giraud

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sun, 19 Jan 2025 12:55:01 GMT) Full text and rfc822 format available.

Notification sent to Manuel Giraud <manuel <at> ledu-giraud.fr>:
bug acknowledged by developer. (Sun, 19 Jan 2025 12:55:02 GMT) Full text and rfc822 format available.

Message #22 received at 75500-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Manuel Giraud <manuel <at> ledu-giraud.fr>
Cc: 75500-done <at> debbugs.gnu.org
Subject: Re: bug#75500: [PATCH] Fix keybinding alignment in `tmm-menubar'
Date: Sun, 19 Jan 2025 14:54:36 +0200
> From: Manuel Giraud <manuel <at> ledu-giraud.fr>
> Cc: 75500 <at> debbugs.gnu.org
> Date: Sat, 18 Jan 2025 17:30:29 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >>       - emacs -Q
> >>       - M-: (setopt tmm-shortcut-inside-entry t) <RET>
> >>       - M-x eww <RET>
> >>       - gnu.org <RET>
> >>       - M-x tmm-menubar <RET> E
> >
> > OK, I see it now, thanks.
> >
> > Coming back to the patch: please make sure the doc string of the
> > function you are adding is according to our conventions (first line is
> > a single complete sentence), and please explain in the comments _why_
> > this shortening is needed and why exactly 2 spaces.
> 
> Do you meant like this?

Yes, exactly.  Now installed on the master branch, and closing the
bug.

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 17 Feb 2025 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.