From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: called-interactively-p Date: Mon, 09 Nov 2009 17:00:51 -0500 Message-ID: References: <71E22738-DB4D-4A16-8821-D371B6E991A1@gmail.com> <8C5A8BDE-77E6-4BE5-90F3-636F4042093C@uva.nl> <0758A105-5B09-413A-8F5A-9C46386669BD@uva.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257804141 10237 80.91.229.12 (9 Nov 2009 22:02:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Nov 2009 22:02:21 +0000 (UTC) Cc: Juanma Barranquero , emacs-devel@gnu.org To: Carsten Dominik Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 09 23:02:13 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N7cJG-0008Si-PR for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 23:02:03 +0100 Original-Received: from localhost ([127.0.0.1]:42307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7cJG-0006ed-8n for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 17:02:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7cIJ-0006DI-IV for emacs-devel@gnu.org; Mon, 09 Nov 2009 17:01:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7cIE-0006BF-F4 for emacs-devel@gnu.org; Mon, 09 Nov 2009 17:01:02 -0500 Original-Received: from [199.232.76.173] (port=58041 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7cIE-0006B0-74 for emacs-devel@gnu.org; Mon, 09 Nov 2009 17:00:58 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:34574) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7cID-0007ZV-Js for emacs-devel@gnu.org; Mon, 09 Nov 2009 17:00:57 -0500 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id nA9M0pIG021329; Mon, 9 Nov 2009 17:00:51 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 72AA93A1DA; Mon, 9 Nov 2009 17:00:51 -0500 (EST) In-Reply-To: <0758A105-5B09-413A-8F5A-9C46386669BD@uva.nl> (Carsten Dominik's message of "Mon, 9 Nov 2009 17:28:57 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3402=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116761 Archived-At: >> Yes, this is a problem. The best I can offer is to use a macro that >> expands to either of the alternatives (a function wouldn't work because >> it would cause interactive-p to always return nil). > And a macro will only work if the user runs compiled code, right? I don't think so: it should work correctly in either case. Stefan