From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: How does one tell when a command is executed from the minibuffer? Date: Sat, 29 Nov 2014 20:21:24 +0100 Message-ID: <871tolvmmj.fsf@igel.home> References: <20141129185724.GA2817@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417288917 3558 80.91.229.3 (29 Nov 2014 19:21:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 19:21:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 29 20:21:50 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 1XunaX-00087M-V1 for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2014 20:21:50 +0100 Original-Received: from localhost ([::1]:48569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XunaX-0005A0-DV for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2014 14:21:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XunaG-00059q-Fl for emacs-devel@gnu.org; Sat, 29 Nov 2014 14:21:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XunaB-0001NH-30 for emacs-devel@gnu.org; Sat, 29 Nov 2014 14:21:32 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:53648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XunaA-0001N8-SA for emacs-devel@gnu.org; Sat, 29 Nov 2014 14:21:26 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3jqjHV0Yxxz3hk6y; Sat, 29 Nov 2014 20:21:25 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3jqjHT5pGBzvh3g; Sat, 29 Nov 2014 20:21:25 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id MTj12pPJgq-3; Sat, 29 Nov 2014 20:21:25 +0100 (CET) X-Auth-Info: dndL5w7kR4OlYimw4iSaYRs2626MO9VkATny4EmqqEtQOQO0qaHVtmtAwu3TTPkp Original-Received: from igel.home (ppp-188-174-145-11.dynamic.mnet-online.de [188.174.145.11]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 29 Nov 2014 20:21:25 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id F10102C37B7; Sat, 29 Nov 2014 20:21:24 +0100 (CET) X-Yow: This is a NO-FRILLS flight -- hold th' CANADIAN BACON!! In-Reply-To: <20141129185724.GA2817@acm.acm> (Alan Mackenzie's message of "Sat, 29 Nov 2014 18:57:25 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.18.0.10 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:178476 Archived-At: 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. 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."