[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How does one tell when a command is executed from the minibuffer?
From: |
Alan Mackenzie |
Subject: |
Re: How does one tell when a command is executed from the minibuffer? |
Date: |
Sat, 29 Nov 2014 19:28:11 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hello, Andreas
On Sat, Nov 29, 2014 at 08:21:24PM +0100, Andreas Schwab wrote:
> Alan Mackenzie <address@hidden> 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, address@hidden
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
--
Alan Mackenzie (Nuremberg, Germany).