]> git.eshelyaron.com Git - emacs.git/commit
Add new 'declare' forms for command completion predicates
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 14 Feb 2021 12:29:35 +0000 (13:29 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 14 Feb 2021 12:29:35 +0000 (13:29 +0100)
commit9291e7316f98ab0858b323f72047ffd5a23d9ac9
treec8a7aae03a0e96290a80c99390190687ffa98ec3
parent58e0c8ee86e2c36245f1c5a1483f1c73600b4914
Add new 'declare' forms for command completion predicates

* doc/lispref/functions.texi (Declare Form): Document the new
`completion' and `modes' declarations.
* lisp/simple.el (completion-with-modes-p): New helper functions.

* lisp/emacs-lisp/byte-run.el (byte-run--set-completion)
(byte-run--set-modes):
(defun-declarations-alist): New declarations for `completion' and
`modes'.
doc/lispref/functions.texi
etc/NEWS
lisp/emacs-lisp/byte-run.el
lisp/simple.el