From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs 25.0.04: Feature Request: Make called-interactively-p's argument optional Date: Wed, 6 Jul 2016 08:45:29 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1467787318 22110 80.91.229.3 (6 Jul 2016 06:41:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2016 06:41:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 06 08:41:49 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 1bKgWr-0002ON-2h for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2016 08:41:49 +0200 Original-Received: from localhost ([::1]:59625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKgWq-0003d1-7H for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2016 02:41:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKgVo-0003aE-LJ for emacs-devel@gnu.org; Wed, 06 Jul 2016 02:40:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKgVi-0007an-ND for emacs-devel@gnu.org; Wed, 06 Jul 2016 02:40:43 -0400 Original-Received: from mout.kundenserver.de ([217.72.192.73]:54011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKgVi-0007ai-DT for emacs-devel@gnu.org; Wed, 06 Jul 2016 02:40:38 -0400 Original-Received: from [192.168.178.35] ([77.12.18.241]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MGR0K-1b7T5o3CbY-00DGbL for ; Wed, 06 Jul 2016 08:40:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.1.0 In-Reply-To: X-Provags-ID: V03:K0:km+1piAsKWsrr8FRpTu9rZ7ifCWSfK9C8Bdmxac4onncolsFQPd Dy3bLN9gJN7gcalYHIk71VSKAZINsoinreGTsvOt2MYgbCal1FLO2Q569M8n8zpL10hxPir iqRYKx7EUIzL+xbYfucGPURJAlmRapxBoedNoT8RMRUhoGv8cq5I5R2xceapOwxE/pwZ7cS FvEjlt9XICAb7dJV0H77A== X-UI-Out-Filterresults: notjunk:1;V01:K0:04N6Cj1YCA4=:Bk5ij6gd/xztEyhF5tJn3S /LEzj8DAVjKldfGCp0QpvrZQEe3DQ7WmYIUYO10iPqDMOgrWjO2QIDsMQk/9kH3OmoMhdoE2O lDSWywcD9LIOocTolN/zN/X0FwV73OA9VqR6HVzicaSRIH9ejlXXCllxGdtyR4coLb50U+11f /IE4NbC3/nrJRzw621rlt7c1DmyNjwdzyhMy7AUyRU13ABsK1XNrXsjCa7ktgAMDGljBEaQH9 bsOaWXJDcwyMJXD1FnEQuMjkZvRcUMsHPVjbVHP/R2Df9pgxRCQPvRJfWpFFDYIb4ywYpJ+K3 7NaVE1+eAzzC3WwY3SettifE+wVZr0W60jkgiC/wdOVP3f7owFh977v4YGTx6m3KdzJ26CnYp +y00/g3MytqW0tOQ/gVeLSwGG33IVKE1gVppJFwDWeDSloidzcQ5KeNHvqEYvJkYir4alFrCr E4bmmtq7i9BtkZwRwoiMuJqbmF79bhAwM84iqJH/5KsjQK1rEu13ixAvhje7Kp7QOiZS1MZY5 vbdpAbMl54JtfiPJgOH7tQgOsTVaR0Zarcd30OmqEbASVP2yTdFXMUeJwBXcaH6AGqC9P3AKR SPuzyrBEB8u2T7PbBs6BFlMzEseGQUI6wAK3zXCMnx4cKnu5Q5Ard+nYOnUYhOElACsxE4EPx DYOKwmEjM1ZRx3eI6TMB+S21lOR259z2Bmkb7Bqk2EA8Kw1cxkuxcZ+pbQ3DXEYVgQSzyPFC0 X6pZcVDSgz03ojSx X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.73 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:205233 Archived-At: On 06.07.2016 07:03, Robert Weiner wrote: > On Tue, Jul 5, 2016 at 8:24 PM, Noam Postavsky > wrote: >> The recommended way to test whether the function was called using >> ‘call-interactively’ is to give it an optional argument >> ‘print-message’ and use the ‘interactive’ spec to make it >> non-‘nil’ in interactive calls. Here’s an example: >> >> (defun foo (&optional print-message) >> (interactive "p") >> (when print-message >> (message "foo"))) > This makes little sense to me. Every time I have a function that > needs to test whether it was called interactively you want me to add > essentially an interactive-flag to its argument signature and then > never send this argument when called non-interactively since the > caller won't care and the argument is optional so it will be nil by > default. Again, why should we name and have to look at an argument to > the function when the interactive test we want is internal to it. > This is similar to the argument that we shouldn't have to send the > default 'interactive argument to called-interactively-p. > > I'm with John, let's simplify this. Let's undeprecate > (interactive-p). Did people actually have problems with that that > kept coming up? Raman and I seemed to have used it for years without > encountering any. > > And John, if you undeprecate it do you really need a patch or can you > just change it? > > Bob > 1+