Add a mechanism for querying before executing a command
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 14 Feb 2022 10:20:41 +0000 (11:20 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 14 Feb 2022 10:20:41 +0000 (11:20 +0100)
commit13b9268374669c368343ce4279041f2021b264f6
treece7e423f79ec4e1392bec71c6fea1d2619ac7817
parent5fb262597f9eba4d90667e5c24581e93b5516edc
Add a mechanism for querying before executing a command

* doc/emacs/custom.texi (Disabling): Document it.
* doc/lispref/commands.texi (Disabling Commands): Document the
low-level stuff.

* lisp/simple.el (command-execute): Respect the `(query ...)'
value for `disabled'.
(command-execute--query): New function.
(command-query): New function.
doc/emacs/custom.texi
doc/lispref/commands.texi
etc/NEWS
lisp/simple.el