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: Tue, 01 Sep 2009 19:30:16 -0400 Message-ID: References: <8AD328622F5645B282D1E72CB4582EF3@us.oracle.com> <873a77v31k.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251847859 25261 80.91.229.12 (1 Sep 2009 23:30:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2009 23:30:59 +0000 (UTC) Cc: cyd@stupidchicken.com, 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 Wed Sep 02 01:30:52 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 1MicoH-0007Ln-HT for ged-emacs-devel@m.gmane.org; Wed, 02 Sep 2009 01:30:45 +0200 Original-Received: from localhost ([127.0.0.1]:54716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MicoG-0000tE-NX for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 19:30:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MicoA-0000rI-3p for emacs-devel@gnu.org; Tue, 01 Sep 2009 19:30:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mico3-0000qb-Sc for emacs-devel@gnu.org; Tue, 01 Sep 2009 19:30:36 -0400 Original-Received: from [199.232.76.173] (port=41582 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mico3-0000qY-PX for emacs-devel@gnu.org; Tue, 01 Sep 2009 19:30:31 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:8051 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mico2-0001x3-Ep; Tue, 01 Sep 2009 19:30:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArcEAM5LnUpFpYuS/2dsb2JhbACBU8cPkliEGwWHbw X-IronPort-AV: E=Sophos;i="4.44,314,1249272000"; d="scan'208";a="44849605" Original-Received: from 69-165-139-146.dsl.teksavvy.com (HELO pastel.home) ([69.165.139.146]) by ironport2-out.teksavvy.com with ESMTP; 01 Sep 2009 19:29:08 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 618477F24; Tue, 1 Sep 2009 19:30:16 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Tue, 01 Sep 2009 17:20:30 -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:114972 Archived-At: > The best way to make such a distinction clearly visible is by > providing an argument. Even better would be to make the > argument mandatory. > A mandatory argument would make people think, each time, about which > question they want to ask. That would be good. But it would require > changing every existing call to either of these functions. That's > a rather high price. Since I don't like the status quo and want to replace those two functions with a single one, there's going to be a price in terms of changes. The lower price is to obsolete called-interactively-p and add an optional arg to interactive-p instead. You don't seem to like this option. The next lower price is to obsolete interactive-p, which will require pretty much the same number of changes as if we introduced a new function (since 97% of the code uses interactive-p rather than called-interactively-p). So if we obsolete interactive-p we may as well introduce a brand new function with a mandatory argument. The only problem with it would be to find a good name for it, since called-interactively-p is already taken. Stefan