Declare that ignore' and undefined' shouldn't be completed over

* lisp/subr.el (ignore, undefined): Declare that these shouldn't
be completed over.
This commit is contained in:
Lars Ingebrigtsen 2021-02-21 19:26:39 +01:00
parent d15a42ac45
commit 24166be166

View file

@ -375,6 +375,7 @@ PREFIX is a string, and defaults to \"g\"."
"Do nothing and return nil.
This function accepts any number of ARGUMENTS, but ignores them.
Also see `always'."
(declare (completion #'ignore))
(interactive)
nil)
@ -922,6 +923,7 @@ For an approximate inverse of this, see `key-description'."
(defun undefined ()
"Beep to tell the user this binding is undefined."
(declare (completion #'ignore))
(interactive)
(ding)
(if defining-kbd-macro