unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: emacs-devel@gnu.org
Subject: Re: How does one tell when a command is executed from the minibuffer?
Date: Sat, 29 Nov 2014 19:28:11 +0000	[thread overview]
Message-ID: <20141129192811.GB2817@acm.acm> (raw)
In-Reply-To: <871tolvmmj.fsf@igel.home>

Hello, Andreas

On Sat, Nov 29, 2014 at 08:21:24PM +0100, Andreas Schwab wrote:
> Alan Mackenzie <acm@muc.de> writes:

> > How does one tell when a command is executed from the minibuffer, e.g.

> >     M-: (foo)

> > , as contrasted with executing it from a file, e.g. by loading that
> > file, or with C-M-x or C-x C-e?

> There is no such thing as "executed from the minibuffer".  The
> expression may be *read* from the minibuffer, but that happens before
> eval-expression is called to evaluate the expression.

Thanks for the clarification.  How does one tell whether an lisp
expression which has been read, and is in the course of being evaluated,
was read from the minibuffer?

> Andreas.

> -- 
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."

-- 
Alan Mackenzie (Nuremberg, Germany).



  reply	other threads:[~2014-11-29 19:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-29 18:57 How does one tell when a command is executed from the minibuffer? Alan Mackenzie
2014-11-29 19:21 ` Andreas Schwab
2014-11-29 19:28   ` Alan Mackenzie [this message]
2014-11-29 19:38     ` Andreas Schwab
2014-11-30  5:25 ` Stefan Monnier

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=20141129192811.GB2817@acm.acm \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=schwab@linux-m68k.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).