[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 12578d6: Change how (declare (modes store the data
From: |
Stefan Monnier |
Subject: |
Re: master 12578d6: Change how (declare (modes store the data |
Date: |
Sat, 20 Feb 2021 09:50:51 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> * 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
- Re: master 12578d6: Change how (declare (modes store the data,
Stefan Monnier <=