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: called-interactively-p Date: Thu, 01 Oct 2009 14:15:39 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254420986 31696 80.91.229.12 (1 Oct 2009 18:16:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2009 18:16:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 01 20:16:19 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 1MtQCQ-00014w-3m for ged-emacs-devel@m.gmane.org; Thu, 01 Oct 2009 20:16:18 +0200 Original-Received: from localhost ([127.0.0.1]:36887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtQCP-000349-CE for ged-emacs-devel@m.gmane.org; Thu, 01 Oct 2009 14:16:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtQBu-0002f7-SY for emacs-devel@gnu.org; Thu, 01 Oct 2009 14:15:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtQBp-0002YZ-77 for emacs-devel@gnu.org; Thu, 01 Oct 2009 14:15:45 -0400 Original-Received: from [199.232.76.173] (port=59948 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtQBo-0002YL-RK for emacs-devel@gnu.org; Thu, 01 Oct 2009 14:15:40 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:39476 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtQBo-00049g-GP for emacs-devel@gnu.org; Thu, 01 Oct 2009 14:15:40 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAIOOxEpMCrXH/2dsb2JhbACBUdYLhCkEhxo X-IronPort-AV: E=Sophos;i="4.44,488,1249272000"; d="scan'208";a="46917533" Original-Received: from 76-10-181-199.dsl.teksavvy.com (HELO pastel.home) ([76.10.181.199]) by ironport2-out.pppoe.ca with ESMTP; 01 Oct 2009 14:15:39 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 90C088109; Thu, 1 Oct 2009 14:15:39 -0400 (EDT) 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:115833 Archived-At: Following the discussion we had here around interactive-p and called-interactively-p, I've just installed the following changes: - called-interactively-p takes a parameter `kind' which can be either `interactive' or `any', the first corresponds to what interactive-p used to do and the second to what called-interactively-p used to do. The function still works if called without any argument, but the byte-compiler will complain about the missing argument (it's the best trade-off I could come up between breaking compatibility and enouraging people to pass as argument). - interactive-p is marked obsolete. This is not quite as simple as it sounds, because interactive-p has its own byte-code. So we'll have to improve our "obsolescence" infrastructure if we want to handle this right. For now, all the "make-obsolete" does in the end is to make C-h f tell you the function is obsolete, which seems good enough for now, especially given the 300 or so calls to interactive-p we still have in our own code. -- Stefan