From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: Emacs 25.0.04: Feature Request: Make called-interactively-p's argument optional Date: Tue, 28 Jun 2016 16:51:24 -0400 Message-ID: References: Reply-To: rswgnu@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113de1ce89a6d305365cce10 X-Trace: ger.gmane.org 1467147163 13670 80.91.229.3 (28 Jun 2016 20:52:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2016 20:52:43 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 22:52:42 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 1bHzzo-00014b-KK for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 22:52:36 +0200 Original-Received: from localhost ([::1]:39888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHzzn-0000UY-CB for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 16:52:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHzzF-0000UG-1w for emacs-devel@gnu.org; Tue, 28 Jun 2016 16:52:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHzz9-0004rC-26 for emacs-devel@gnu.org; Tue, 28 Jun 2016 16:51:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHzz8-0004r7-UX for emacs-devel@gnu.org; Tue, 28 Jun 2016 16:51:54 -0400 Original-Received: from mail-oi0-f50.google.com ([209.85.218.50]:36447) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bHzz8-00017N-BR for emacs-devel@gnu.org; Tue, 28 Jun 2016 16:51:54 -0400 Original-Received: by mail-oi0-f50.google.com with SMTP id f189so40644062oig.3 for ; Tue, 28 Jun 2016 13:51:54 -0700 (PDT) X-Gm-Message-State: ALyK8tLmdmKyRVMYJ1e4XnT04s19J0tibRLCCy4qXrzlmOQE6BcB3vdXlwuT+kmcq6owZlgGYjQcClV1vT9wjA== X-Received: by 10.202.245.133 with SMTP id t127mr3431694oih.192.1467147113569; Tue, 28 Jun 2016 13:51:53 -0700 (PDT) Original-Received: by 10.202.212.143 with HTTP; Tue, 28 Jun 2016 13:51:24 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:204900 Archived-At: --001a113de1ce89a6d305365cce10 Content-Type: text/plain; charset=UTF-8 Much of the prior discussion on this topic seems to favor my suggestion and even suggest that people would like (interactive-p) non-deprecated. -- Bob Here is a taste: *From*: Drew Adams *Subject*: RE: Brittleness of called-interactively-p *Date*: Thu, 16 Jul 2015 10:36:41 -0700 (PDT) FWIW, I still use `interactive-p' in much of my code, because the code needs to work also with older Emacs versions. And because I have never noticed any problem, for this code anyway, with `interactive-p'. What's more, the doc for `interactive-p' does not really tell you how to replace it - it just says to use `called-interactively-p', without any mention of which argument gives you the behavior you had previously with `interactive-p' or similar-but-somehow-improved behavior. `interactive-p' was indeed used heavily, over decades. And it is no doubt still in use quite a bit. Too bad there is next-to-no guidance on how to use `called-interactively-p' to replace it. --001a113de1ce89a6d305365cce10 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Much of the prior discussion on this topic seems to favor my s= uggestion and even suggest that people would like (interactive-p) non-depre= cated. =C2=A0-- Bob

Here is a taste:

From:Drew Adams=
Subject:RE: Brittleness of called-interactively-p
Date:Thu, 16 Jul= 2015 10:36:41 -0700 (PDT)
FWIW, I still use `interactive-p' in much of my code, because =
the code
needs to work also with older Emacs versions.  And because I have never
noticed any problem, for this code anyway, with `interactive-p'.

What's more, the doc for `interactive-p' does not really tell you h=
ow
to replace it - it just says to use `called-interactively-p', without
any mention of which argument gives you the behavior you had previously
with `interactive-p' or similar-but-somehow-improved behavior.

`interactive-p' was indeed used heavily, over decades.  And it is no
doubt still in use quite a bit.  Too bad there is next-to-no guidance
on how to use `called-interactively-p' to replace it.

--001a113de1ce89a6d305365cce10--