diff options
| author | Eli Zaretskii | 2004-11-06 11:49:55 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-11-06 11:49:55 +0000 |
| commit | 4d79b8744fb607beb5ec7b074103970d52711601 (patch) | |
| tree | 690128effdc120221c29bf9de98444986cf2d39d | |
| parent | 16d24ae8cfd08d570201479cb2f3b43ab8d674d4 (diff) | |
| download | emacs-4d79b8744fb607beb5ec7b074103970d52711601.tar.gz emacs-4d79b8744fb607beb5ec7b074103970d52711601.zip | |
(insert-kbd-macro): Do completions based on macros,
rather than all commands.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/macros.el | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f3b2b82da1e..07ee943054c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-11-06 Alan Shutko <ats@acm.org> | ||
| 2 | |||
| 3 | * macros.el (insert-kbd-macro): Do completions based on macros, | ||
| 4 | rather than all commands. | ||
| 5 | |||
| 1 | 2004-11-06 David Hansen <david.hansen@gmx.net> (tiny change) | 6 | 2004-11-06 David Hansen <david.hansen@gmx.net> (tiny change) |
| 2 | 7 | ||
| 3 | * tempo.el (tempo-match-finder): Use [:word:] instead of "^\\b", | 8 | * tempo.el (tempo-match-finder): Use [:word:] instead of "^\\b", |
diff --git a/lisp/macros.el b/lisp/macros.el index 0de5d223ee0..bb9fda41a45 100644 --- a/lisp/macros.el +++ b/lisp/macros.el | |||
| @@ -63,7 +63,14 @@ bindings. | |||
| 63 | 63 | ||
| 64 | To save a kbd macro, visit a file of Lisp code such as your `~/.emacs', | 64 | To save a kbd macro, visit a file of Lisp code such as your `~/.emacs', |
| 65 | use this command, and then save the file." | 65 | use this command, and then save the file." |
| 66 | (interactive "CInsert kbd macro (name): \nP") | 66 | (interactive (list (intern (completing-read "Insert kbd macro (name): " |
| 67 | obarray | ||
| 68 | (lambda (elt) | ||
| 69 | (and (fboundp elt) | ||
| 70 | (or (stringp (symbol-function elt)) | ||
| 71 | (vectorp (symbol-function elt))))) | ||
| 72 | t)) | ||
| 73 | current-prefix-arg)) | ||
| 67 | (let (definition) | 74 | (let (definition) |
| 68 | (if (string= (symbol-name macroname) "") | 75 | (if (string= (symbol-name macroname) "") |
| 69 | (progn | 76 | (progn |