From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Emacs 25.0.04: Feature Request: Make called-interactively-p's argument optional Date: Wed, 29 Jun 2016 14:19:33 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467235255 7036 80.91.229.3 (29 Jun 2016 21:20:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 21:20:55 +0000 (UTC) Cc: emacs-devel To: rswgnu@gmail.com, Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 29 23:20:43 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bIMuG-0002Mj-UX for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2016 23:20:25 +0200 Original-Received: from localhost ([::1]:45837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIMuG-0006Hv-6A for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2016 17:20:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIMtc-0006Hj-VE for emacs-devel@gnu.org; Wed, 29 Jun 2016 17:19:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIMtY-0000PM-M3 for emacs-devel@gnu.org; Wed, 29 Jun 2016 17:19:43 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:28960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIMtY-0000Nu-Dx; Wed, 29 Jun 2016 17:19:40 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5TLJbFk008495 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 29 Jun 2016 21:19:38 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u5TLJbeF019433 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 29 Jun 2016 21:19:37 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u5TLJYas027605; Wed, 29 Jun 2016 21:19:36 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204953 Archived-At: > There was a function, interactive-p, that many people used without any > arguments and found that useful. Now (called-interactively-p > 'interactive) is equivalent but makes code much uglier (I know as I > just changed all my code to use it and it is much less readable now). > The request is for a function of no arguments that does what > interactive-p did; it could be called-interactively-p with an optional > argument signature or it could be another function that provides an > equivalent. If (called-interactively-p 'interactive) is equivalent to `interactive-p', and if "the call is for a function of no arguments that does what `interactive-p' did" (and still does) ...then just use `interactive-p'. (I do. But then, I also want to be backward compatible.)