From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Problems with catch and throw
Date: Fri, 05 Oct 2007 10:11:05 +0200 [thread overview]
Message-ID: <87abqyt206.fsf@baldur.tsdh.de> (raw)
In-Reply-To: 87ejgat4mf.fsf@baldur.tsdh.de
Tassilo Horn <tassilo@member.fsf.org> writes:
Hi,
> Ok, then the real question is: How can I invoke
> `execute-extended-command' with an initial input string?
For the record: That seems to be not possible, but you can mimic its
behavior like this:
--8<---------------cut here---------------start------------->8---
(let ((command (completing-read "M-x "
(let (commands)
(mapatoms (lambda (a)
(when (commandp a)
(push (symbol-name a)
commands))))
commands)
nil t catch-val)))
(command-execute (intern command) t nil t))
--8<---------------cut here---------------end--------------->8---
Bye,
Tassilo
prev parent reply other threads:[~2007-10-05 8:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-04 16:16 Problems with catch and throw Tassilo Horn
2007-10-05 6:59 ` Barry Margolin
2007-10-05 7:14 ` Tassilo Horn
2007-10-05 8:11 ` Tassilo Horn [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87abqyt206.fsf@baldur.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=help-gnu-emacs@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.