From: Alan Shutko <ats@acm.org>
Subject: insert-kbd-macros: restrict completion to macros
Date: Wed, 27 Oct 2004 15:44:39 -0500 [thread overview]
Message-ID: <87r7njopqg.fsf@wesley.springies.com> (raw)
I noticed that completion for insert-kbd-macros offers all command
names for completions, rather than just macros. This makes completion
for this command much less useful. I suggest the following patch
limiting completion to macros:
2004-10-27 Alan Shutko <ats@acm.org>
* macros.el (insert-kbd-macro): Do completions based on macros,
rather than all commands.
--- macros.el 22 Sep 2004 10:04:02 -0500 1.42
+++ macros.el 27 Oct 2004 15:39:53 -0500
@@ -63,7 +63,14 @@
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
--
Alan Shutko <ats@acm.org> - I am the rocks.
The best location for a Caps Lock key is nailed to the wall!
reply other threads:[~2004-10-27 20:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r7njopqg.fsf@wesley.springies.com \
--to=ats@acm.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).