mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(insert-kbd-macro): Do completions based on macros,
rather than all commands.
This commit is contained in:
parent
16d24ae8cf
commit
4d79b8744f
2 changed files with 13 additions and 1 deletions
|
|
@ -63,7 +63,14 @@ bindings.
|
|||
|
||||
To save a kbd macro, visit a file of Lisp code such as your `~/.emacs',
|
||||
use this command, and then save the file."
|
||||
(interactive "CInsert kbd macro (name): \nP")
|
||||
(interactive (list (intern (completing-read "Insert kbd macro (name): "
|
||||
obarray
|
||||
(lambda (elt)
|
||||
(and (fboundp elt)
|
||||
(or (stringp (symbol-function elt))
|
||||
(vectorp (symbol-function elt)))))
|
||||
t))
|
||||
current-prefix-arg))
|
||||
(let (definition)
|
||||
(if (string= (symbol-name macroname) "")
|
||||
(progn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue