all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mekeor Melire <mekeor@posteo.de>
To: 74903@debbugs.gnu.org
Cc: Robert Pluim <rpluim@gmail.com>, Eli Zaretskii <eliz@gnu.org>,
	Stefan Kangas <stefankangas@gmail.com>,
	Andrea Corallo <acorallo@gnu.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#74903: [PATCH] Add function to show table of keys when describing keymap variable
Date: Tue, 24 Dec 2024 23:14:31 +0000	[thread overview]
Message-ID: <87r05wznag.fsf@host.mail-host-address-is-not-set> (raw)
In-Reply-To: <jwv5xnjm303.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 16 Dec 2024 22:03:22 -0500")

Resending an email that I mistakenly had only sent to Stefan 
Monnier:


On Mon, 16 Dec 2024 22:03:22 -0500, Stefan Monnier 
<monnier@iro.umontreal.ca> said: 
 
> The table is a bit redundant with the s-exp representation and 
> I'm not sure we want to spend all this time&space printing out a 
> large keymap, but maybe we could use the 
> `help-fns-describe-variable-functions` mechanism to add a 
> one-liner that can be clicked to get to the keymap-specific 
> description, a bit like Custom vars have a "You can customize 
> this variable" link.  WDYT? 
 
I agree that there's redundancy.  But since adding the function 
`help-fns-keymap-key-bindings' from my patch to 
`help-fns-describe-variable-functions` would be opt-in, it'd be up 
to the user to decide between redundancy and convenience. 
Nevertheless, I like your idea of a clickable button, e.g. worded 
"View this keymap as a table" in the *Help* buffer.  Let me 
continue your comparison to the "You can customize this variable" 
button by noting that its command, `help-customize', is also bound 
to "c" in Help-Mode.  I'd also like a key binding for "View this 
keymap as a table", e.g. "k".  So, these key sequences would 
result in the same state:

    C-h v foo-map RET k
    M-x describe-keymap foo-map RET

But we can build up this idea further: What if these would also 
result in the same state? (`ido-mode' is both a variable and a 
function.)

    C-h f ido-mode RET o
    C-h v ido-mode RET o
    C-h o ido-mode RET

And also:

    C-h v ido-mode RET f
    C-h f ido-mode RET

What do you think about enabling users to easily "effectively switch"
between describe-* commands in this way?





  parent reply	other threads:[~2024-12-24 23:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-15 23:14 bug#74903: [PATCH] Add function to show table of keys when describing keymap variable Mekeor Melire
2024-12-16 15:57 ` Eli Zaretskii
2024-12-16 17:28   ` Robert Pluim
2024-12-16 18:41     ` Mekeor Melire
2024-12-17  3:03       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-24 22:55         ` Mekeor Melire
2024-12-24 23:14         ` Mekeor Melire [this message]
2024-12-17  7:49       ` Robert Pluim
2024-12-17  7:59         ` Juri Linkov
2024-12-17  8:32           ` Robert Pluim
2024-12-17 19:00             ` Juri Linkov
2024-12-18 12:04               ` Robert Pluim
2024-12-18 17:28                 ` Juri Linkov
2024-12-17  2:56   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-18  0:21     ` Mekeor Melire
2024-12-24 23:19 ` Mekeor Melire
2024-12-25 12:04   ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=87r05wznag.fsf@host.mail-host-address-is-not-set \
    --to=mekeor@posteo.de \
    --cc=74903@debbugs.gnu.org \
    --cc=acorallo@gnu.org \
    --cc=eliz@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rpluim@gmail.com \
    --cc=stefankangas@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.