all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How does one tell when a command is executed from the minibuffer?
@ 2014-11-29 18:57 Alan Mackenzie
  2014-11-29 19:21 ` Andreas Schwab
  2014-11-30  5:25 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Alan Mackenzie @ 2014-11-29 18:57 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs.

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?

Something like (current-buffer) ought to do it, but `current-buffer'
"lies" when the current buffer is actually the minibuffer.

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-30  5:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-11-29 19:38     ` Andreas Schwab
2014-11-30  5:25 ` Stefan Monnier

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.