From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitri Paduchikh Newsgroups: gmane.emacs.devel Subject: Re: Brittleness of called-interactively-p Date: Sat, 18 Jul 2015 09:39:40 +0500 Message-ID: <87bnfarsdv.fsf@gmail.com> References: <871tgeufzt.fsf@gmail.com> <87r3odtngi.fsf@gmail.com> <87380st7c1.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1437194400 21521 80.91.229.3 (18 Jul 2015 04:40:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2015 04:40:00 +0000 (UTC) Cc: emacs-devel@gnu.org, raman To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 18 06:39:59 2015 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 1ZGJuo-00007z-KF for ged-emacs-devel@m.gmane.org; Sat, 18 Jul 2015 06:39:58 +0200 Original-Received: from localhost ([::1]:46848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGJuo-0004nv-2v for ged-emacs-devel@m.gmane.org; Sat, 18 Jul 2015 00:39:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGJuc-0004no-MU for emacs-devel@gnu.org; Sat, 18 Jul 2015 00:39:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGJuZ-0006J1-GU for emacs-devel@gnu.org; Sat, 18 Jul 2015 00:39:46 -0400 Original-Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]:33226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGJuZ-0006Hv-7z for emacs-devel@gnu.org; Sat, 18 Jul 2015 00:39:43 -0400 Original-Received: by lbbyj8 with SMTP id yj8so70586079lbb.0 for ; Fri, 17 Jul 2015 21:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=f0mF/eAJWZSRqlKmSXIEpg3d0hsf5eiT7P7nS9t7Lrg=; b=Pxipb9+oTo9F7bVHYj01vkseTMxHIpMnHE0J5o2PGID9amDjp8wKZAAgKDqnXmmIv8 L4RWqxZkhVdxhG4k+SnAXofcCCnjdS1t4zS7nR+lhfw8n/laIGwrn9tBVJqPjIWAxLaM +R/krNQSn9Qk4vUtAuiWXb7/mEp33GFJmJm3MsV40IOfnh7EgCgZB2EvWlS+97lkBctM zB9zE8cPGi6m+2+T6fHGUUJHO5xdodtql8j6oBIrlX1Ltk1pvGT8JbU2L6YH5QqRuyQ7 Nzq5VGNlOwMKk4VnrRhm6JQiova0v1bt+g4mtQnmn6YCl8/8VQSNfazQ7coDhX7GxXKa hFwQ== X-Received: by 10.152.7.7 with SMTP id f7mr17548568laa.106.1437194382269; Fri, 17 Jul 2015 21:39:42 -0700 (PDT) Original-Received: from gmail.com ([46.48.49.226]) by smtp.gmail.com with ESMTPSA id z1sm3359610lbj.11.2015.07.17.21.39.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jul 2015 21:39:41 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Thu, 16 Jul 2015 18:55:29 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187942 Archived-At: Stefan Monnier writes: SM> (interactive-p) is 99.9% equivalent to (called-interactively-p SM> 'interactive), including interactions with advice and whatnot. By the way, the interface of called-interactively-p seems somewhat non-intuitive. Since calling it with 'interactive is intended to replace `(interactive-p)' it would be more convenient to make `kind' an optional argument having the default meaning of 'interactive. (called-interactively-p) ; instead of 'interactive (called-interactively-p 'ever) ; instead of 'any Just a side note.