all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean-Christophe Helary <lists@traduction-libre.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: "Command Discovery In Emacs "
Date: Mon, 16 Aug 2021 22:15:26 +0900	[thread overview]
Message-ID: <9E7AB41B-8F1F-4FC8-AA1B-8867ACC32FA0@traduction-libre.org> (raw)
In-Reply-To: <87r1etblay.fsf@gnus.org>



> On Aug 16, 2021, at 21:56, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 
> Jean-Christophe Helary <lists@traduction-libre.org> writes:
> 
>>> See the "Command Modes" section in the Emacs Lisp manual.
>> 
>> It doesn't say whether there is an easy way to find which mode is a
>> given function associated to... :)
> 
> There is and there isn't.  :-)  This stuff is about creating a way to
> reliably find commands that are meant for a specific mode -- there isn't
> one today.
> 
> But in practice it's pretty easy.  If you look at a random (special)
> mode like tetris.el, it's pretty obvious which commands are for that
> mode only (and which ones aren't), which makes tagging up the commands
> easy enough.

Ok, that's what I eventually guessed. So, the idea is to check whether a function is interactive and try to guess whether it is limited to a given mode (most probably the mode it is defined in), and if yes tag it ?

 I'll give that a try for a few modes I use. Thank you for this feature! After helpful, which-keys, it really is a nice addition. I'm always looking for such modes/features that help with the discovery process.


-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




  reply	other threads:[~2021-08-16 13:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-16  5:31 "Command Discovery In Emacs " Jean-Christophe Helary
2021-08-16 11:38 ` Lars Ingebrigtsen
2021-08-16 12:29   ` Jean-Christophe Helary
2021-08-16 12:56     ` Lars Ingebrigtsen
2021-08-16 13:15       ` Jean-Christophe Helary [this message]
2021-08-16 13:23         ` Lars Ingebrigtsen
2021-08-16 13:33           ` Condy Chen
2021-08-16 13:43             ` Lars Ingebrigtsen
2021-08-16 13:46               ` Condy Chen
2021-08-16 14:58   ` Stephen Berman
2021-08-16 15:49     ` Eli Zaretskii
2021-08-16 16:13       ` Stephen Berman
2021-08-16 16:32         ` Eli Zaretskii
2021-08-16 17:17           ` Stephen Berman
2021-08-16 20:58             ` Stephen Berman
2021-08-16 20:59         ` Matthias Meulien

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=9E7AB41B-8F1F-4FC8-AA1B-8867ACC32FA0@traduction-libre.org \
    --to=lists@traduction-libre.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.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 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.