From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: interactive-p and called-interactively-p Date: Thu, 03 Sep 2009 09:48:24 -0400 Message-ID: References: <8AD328622F5645B282D1E72CB4582EF3@us.oracle.com> <873a77v31k.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1251985754 19848 80.91.229.12 (3 Sep 2009 13:49:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2009 13:49:14 +0000 (UTC) Cc: cyd@stupidchicken.com, drew.adams@oracle.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 03 15:49:07 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 1MjCgT-0008W6-LK for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2009 15:49:05 +0200 Original-Received: from localhost ([127.0.0.1]:49418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjCgT-0005Z2-6G for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2009 09:49:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjCft-0005Mn-E9 for emacs-devel@gnu.org; Thu, 03 Sep 2009 09:48:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjCfp-0005Ld-Rl for emacs-devel@gnu.org; Thu, 03 Sep 2009 09:48:29 -0400 Original-Received: from [199.232.76.173] (port=53983 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjCfp-0005LX-N7 for emacs-devel@gnu.org; Thu, 03 Sep 2009 09:48:25 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:34483) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjCfp-0007Nf-Nk for emacs-devel@gnu.org; Thu, 03 Sep 2009 09:48:25 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MjCfo-0007Gw-7z; Thu, 03 Sep 2009 09:48:24 -0400 In-reply-to: (message from Stefan Monnier on Tue, 01 Sep 2009 19:30:16 -0400) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:115003 Archived-At: > 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. If the arg is optional, it won't require or remind the programmer to consider the issue of which question he wants to ask. If we don't use a mandatory arg, I think the next best solution is the one we use now: two functions with different names. The names could be clearer than they are, but the one which is least clear now is `interactive-p'. That's why I proposed to change that one. If you don't mind the size of the transient caused by the change, I think the mandatory argument is the best design.