From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: How does one tell when a command is executed from the minibuffer? Date: Sat, 29 Nov 2014 19:28:11 +0000 Message-ID: <20141129192811.GB2817@acm.acm> References: <20141129185724.GA2817@acm.acm> <871tolvmmj.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1417289340 10017 80.91.229.3 (29 Nov 2014 19:29:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 19:29:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 29 20:28:53 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XunhM-00035O-R5 for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2014 20:28:52 +0100 Original-Received: from localhost ([::1]:48585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XunhM-0006CZ-AF for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2014 14:28:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XunhE-0006CU-B6 for emacs-devel@gnu.org; Sat, 29 Nov 2014 14:28:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xunh9-0003bM-1z for emacs-devel@gnu.org; Sat, 29 Nov 2014 14:28:44 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:16886 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xunh8-0003b5-HJ for emacs-devel@gnu.org; Sat, 29 Nov 2014 14:28:38 -0500 Original-Received: (qmail 36378 invoked by uid 3782); 29 Nov 2014 19:28:36 -0000 Original-Received: from acm.muc.de (pD9519A1F.dip0.t-ipconnect.de [217.81.154.31]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 29 Nov 2014 20:28:35 +0100 Original-Received: (qmail 3110 invoked by uid 1000); 29 Nov 2014 19:28:11 -0000 Content-Disposition: inline In-Reply-To: <871tolvmmj.fsf@igel.home> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178477 Archived-At: Hello, Andreas On Sat, Nov 29, 2014 at 08:21:24PM +0100, Andreas Schwab wrote: > Alan Mackenzie 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).