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: interactive-p and called-interactively-p Date: Mon, 31 Aug 2009 19:56:43 -0400 Message-ID: References: <8AD328622F5645B282D1E72CB4582EF3@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251763028 12238 80.91.229.12 (31 Aug 2009 23:57:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 23:57:08 +0000 (UTC) Cc: drew.adams@oracle.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 01 01:57:01 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 1MiGk5-0007Qd-K1 for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 01:56:58 +0200 Original-Received: from localhost ([127.0.0.1]:37704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiGk4-0002QH-U7 for ged-emacs-devel@m.gmane.org; Mon, 31 Aug 2009 19:56:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiGjz-0002N7-3B for emacs-devel@gnu.org; Mon, 31 Aug 2009 19:56:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiGjt-0002Gh-Qd for emacs-devel@gnu.org; Mon, 31 Aug 2009 19:56:50 -0400 Original-Received: from [199.232.76.173] (port=48112 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiGjt-0002GW-OX for emacs-devel@gnu.org; Mon, 31 Aug 2009 19:56:45 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:10549 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiGjs-0003OI-O0; Mon, 31 Aug 2009 19:56:44 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEACwAnEpFpYuS/2dsb2JhbACBU9gdhBoFh2c X-IronPort-AV: E=Sophos;i="4.44,308,1249272000"; d="scan'208";a="44677440" Original-Received: from 69-165-139-146.dsl.teksavvy.com (HELO pastel.home) ([69.165.139.146]) by ironport2-out.teksavvy.com with ESMTP; 31 Aug 2009 19:55:37 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id ABD957F24; Mon, 31 Aug 2009 19:56:43 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Mon, 31 Aug 2009 18:21:45 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:114929 Archived-At: > `interactive-p' has the advantage that it existed for a *very* > long time, whereas called-interactively-p is a new comer. > It has existed only 5 years, Yes, and during this time, compatibility to Emacs-21 and XEmacs was still fairly important for unbundled packages, so it hasn't seen much use outside of Emacs itself. > but I think the important point is that its name fits its meaning. > The name interactive-p does not correspond to its meaning, and users > very often guess wrong about what it does. This is clearly true, but while confusion has been common, it hasn't been an actual problem either. And in any case, as I mentioned, we should rather encourage programmers to stay avoid from both of those functions. >> Perhaps we should make the name `interactive-p' obsolete and make >> a new name, `from-user-input-p'. This will eliminate the >> confusion completely. > Even such a new name isn't very clear. The only clear solution is to > use an additional argument passed from the interactive spec. > In what sense is that the only clear solution? I do not follow you here. Because it makes it clear that you're distinguishing different notions of "interactivity" (one of them being just "called via call-interactively", the other being "directly called from the keyboard rather than via a macro or some batch invocation"). Stefan