unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: Lars Ingebrigtsen <larsi@gnus.org>
Subject: Re: master 12578d6: Change how (declare (modes store the data
Date: Sat, 20 Feb 2021 09:50:51 -0500	[thread overview]
Message-ID: <jwv4ki623vn.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20210220132951.6CCAF20B7C@vcs0.savannah.gnu.org> (Lars Ingebrigtsen's message of "Sat, 20 Feb 2021 08:29:50 -0500 (EST)")

>     * lisp/emacs-lisp/byte-run.el (byte-run--set-modes): Change from
>     being a predicate to storing the modes.  This allows using the
>     modes for positive command discovery, too.

BTW, maybe the generalization is to replace the "completion-predicate"
and the "command-modes" into a function that returns a *score*, with
some convention where a score lower than X means the command can't
possibly work, and score lower than Y means the command is too unlikely
to be useful to be worth listing, a score higher than Y means that the
command has a special affinity with the current situation (like "written
for the current mode"), ...


        Stefan




       reply	other threads:[~2021-02-20 14:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210220132950.31277.5100@vcs0.savannah.gnu.org>
     [not found] ` <20210220132951.6CCAF20B7C@vcs0.savannah.gnu.org>
2021-02-20 14:50   ` Stefan Monnier [this message]
2021-02-20 14:53     ` master 12578d6: Change how (declare (modes store the data Lars Ingebrigtsen
2021-02-21  6:19     ` Richard Stallman
2021-02-21 20:13       ` Stefan Monnier
2021-02-21  6:29     ` Richard Stallman

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=jwv4ki623vn.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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 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).