unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Jacobson <jidanni@jidanni.org>
To: 70530@debbugs.gnu.org
Subject: bug#70530: Better sorting for describe-bindings and describe-mode
Date: Tue, 23 Apr 2024 18:04:27 +0800	[thread overview]
Message-ID: <87cyqg5r9w.n.fsf@jidanni.org> (raw)

I discovered that
C-h m describe-mode and thus also
C-h b describe-bindings
are several times more helpful, if sorted by the last field, not the first.
E.g., for
$ emacs file.html #then C-h m and save to a file and pipe it to
grep --perl-regexp \\t | expand | sort -k 1.16 #giving:

C-c C-a         sgml-attributes
C-c /           sgml-close-tag
C-c C-e         sgml-close-tag
C-c ]           sgml-close-tag
C-c C-d         sgml-delete-tag
C-c DEL         sgml-delete-tag
C-c C-n         sgml-name-char
C-c <left>      sgml-skip-tag-backward
C-c C-b         sgml-skip-tag-backward
C-c <right>     sgml-skip-tag-forward
C-c C-f         sgml-skip-tag-forward
/               sgml-slash
C-c C-o         sgml-tag
C-c C-t         sgml-tag
C-c ?           sgml-tag-help

Allowing the user to suddenly see all the alternate bindings in a glance.

Therefore I propose C-h b and C-h m start listing them that way, or at least offer an option to do so. Thanks.

Wait, hold on. Let's examine the default sort order.

...
C-c <left>	sgml-skip-tag-backward
C-c <right>	sgml-skip-tag-forward

C-M-i		ispell-complete-word

M-o M-o		font-lock-fontify-block

C-c C-c #	html-id-anchor
C-c C-c -	html-horizontal-rule
C-c C-c c	html-checkboxes
...

We see that there is no default sort order.
It's all just glued together as processing proceeded.
Even more reason to use my brilliant proposed order.

GNU Emacs 29.3





                 reply	other threads:[~2024-04-23 10:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87cyqg5r9w.n.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=70530@debbugs.gnu.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).