1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-01 20:06:00 +00:00

(insert-kbd-macro): Do completions based on macros,

rather than all commands.
This commit is contained in:
Eli Zaretskii 2004-11-06 11:49:55 +00:00
parent 16d24ae8cf
commit 4d79b8744f
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-11-06 Alan Shutko <ats@acm.org>
* macros.el (insert-kbd-macro): Do completions based on macros,
rather than all commands.
2004-11-06 David Hansen <david.hansen@gmx.net> (tiny change)
* tempo.el (tempo-match-finder): Use [:word:] instead of "^\\b",

View File

@ -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