unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Unknown <unknown@unknown.invalid>
To: "Mattias Engdegård" <mattiase@acm.org>
Cc: 45502@debbugs.gnu.org
Subject: bug#45502: [PATCH] Prettier key bindings in NS menu entries
Date: Mon, 28 Dec 2020 23:46:36 +0100	[thread overview]
Message-ID: <m1sg7pmtv7.fsf@yahoo.es> (raw)
In-Reply-To: <A879EF2E-3B21-4C73-9253-02083031FCCF@acm.org> ("Mattias Engdegård"'s message of "Mon, 28 Dec 2020 15:23:25 +0100")

Mattias Engdegård <mattiase@acm.org> writes:

> The NS port shows key bindings in a rather cluttered way, with the key
> in brackets directly after the menu entry. The Mac port of Emacs is
> much neater with the bindings all aligned at a common tab position. We
> could do the same, but having done some experiments I actually prefer
> a right-alignment of the keys. Proof-of-concept patch attached.
>
> The alignment is made by padding with spaces, and then with hair
> spaces for extra precision; the result is not perfect but probably
> better than what we have now. If I get some time, I might do an
> experiment with more precise formatting.

Thanks for the patch! It crashed Emacs when I tried to open the Gnus
menu bar (the Gnus menu bar is an extreme case with lots of bindings).

I'm not sure if left-alignment or right-alignment would be better.  To
improve visuals, Apple seems to align with respect to the ⌘ symbol, but
that doesn't fit Emacs well because there's no single modifier that is
used in almost every keybinding (some use Control, some Meta).  Also,
it's not uncommon in Emacs to have keybindings that are a couple of
keymaps deep.





      parent reply	other threads:[~2020-12-28 22:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-28 14:23 bug#45502: [PATCH] Prettier key bindings in NS menu entries Mattias Engdegård
2020-12-28 18:36 ` Alan Third
2020-12-29 12:02   ` Mattias Engdegård
2020-12-29 13:53     ` Alan Third
2020-12-29 14:41       ` Mattias Engdegård
2020-12-29 15:50         ` Alan Third
2020-12-29 17:34           ` Mattias Engdegård
2020-12-29 21:24             ` Alan Third
2020-12-29 22:53               ` Mattias Engdegård
2020-12-29 23:49                 ` Alan Third
2020-12-30 12:19                   ` Mattias Engdegård
2020-12-30 12:46                     ` Alan Third
2020-12-30 13:09                       ` Alan Third
2020-12-30 15:53                         ` Mattias Engdegård
2020-12-30 13:12                       ` Mattias Engdegård
2020-12-28 22:46 ` Unknown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1sg7pmtv7.fsf@yahoo.es \
    --to=unknown@unknown.invalid \
    --cc=45502@debbugs.gnu.org \
    --cc=mattiase@acm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).