Subject: bug#75500: [PATCH] Fix keybinding alignment in `tmm-menubar'

From: Manuel Giraud <[email-masked]>
Date: Sat, 18 Jan 2025 15:11:10 +0100

Eli Zaretskii <[email-masked]> 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" <[email-masked]>
>> 
>> 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