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: Sun, 16 Aug 2009 10:53:32 -0400 Message-ID: References: <8AD328622F5645B282D1E72CB4582EF3@us.oracle.com> <87my5zopji.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250434451 11873 80.91.229.12 (16 Aug 2009 14:54:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Aug 2009 14:54:11 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 16 16:54:03 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 1Mch7R-0008MU-I9 for ged-emacs-devel@m.gmane.org; Sun, 16 Aug 2009 16:54:01 +0200 Original-Received: from localhost ([127.0.0.1]:52152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mch7Q-0001Zk-Se for ged-emacs-devel@m.gmane.org; Sun, 16 Aug 2009 10:54:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mch7M-0001Zd-EX for emacs-devel@gnu.org; Sun, 16 Aug 2009 10:53:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mch7H-0001Y4-Qp for emacs-devel@gnu.org; Sun, 16 Aug 2009 10:53:56 -0400 Original-Received: from [199.232.76.173] (port=60914 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mch7H-0001Y1-NR for emacs-devel@gnu.org; Sun, 16 Aug 2009 10:53:51 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:62328 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mch7H-0006aa-D4 for emacs-devel@gnu.org; Sun, 16 Aug 2009 10:53:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvgEAN66h0pFpZNo/2dsb2JhbACBUs9shBkFh0k X-IronPort-AV: E=Sophos;i="4.43,389,1246852800"; d="scan'208";a="43626770" Original-Received: from 69-165-147-104.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.104]) by ironport2-out.teksavvy.com with ESMTP; 16 Aug 2009 10:53:03 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 616C782F0; Sun, 16 Aug 2009 10:53:32 -0400 (EDT) In-Reply-To: <87my5zopji.fsf@cyd.mit.edu> (Chong Yidong's message of "Sun, 16 Aug 2009 09:29:21 -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:114312 Archived-At: >>> It would have been far better to just add an optional argument to >>> `interactive-p' than to create a new, similarly named function. >> >> Agreed. Any objection? > Since called-interactively-p has been around since Emacs 22, and the > benefit in cleanliness is rather minute, I don't think it's worth the > hassle. We can't just remove called-interactively-p because that would > break backward compatibility, which means adding another argument to > interactive-p just means more non-useful complexity (how many people > would benefit from this anyway?). It would make this cleaner and easier to explain. Marking called-interactively-p as obsolete is easy, and called-interactively-p is probably very rarely used nowadays outside of Emacs's bundled packages. Also an argument to `interactive-p' makes it easier for people to learn about the functionality. Stefan