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: Re: Brittleness of called-interactively-p Date: Thu, 06 Aug 2015 18:36:54 -0400 Message-ID: References: <871tgeufzt.fsf@gmail.com> <874ml8t7cr.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438900644 3102 80.91.229.3 (6 Aug 2015 22:37:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 22:37:24 +0000 (UTC) Cc: Richard Stallman , emacs-devel@gnu.org To: Dmitri Paduchikh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 07 00:37:16 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 1ZNTmj-0003dh-Ns for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 00:37:13 +0200 Original-Received: from localhost ([::1]:47020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNTmj-0005Uh-7l for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2015 18:37:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNTmV-0005Ub-8C for emacs-devel@gnu.org; Thu, 06 Aug 2015 18:37:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNTmR-0000N9-4j for emacs-devel@gnu.org; Thu, 06 Aug 2015 18:36:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:19600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNTmR-0000N5-0B; Thu, 06 Aug 2015 18:36:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AzFgA731xV//gFNJ1cgxCEAoVVu0CHSwQCAoE8OhMBAQEBAQEBgQpBBYNdAQEDAVYjBQsLDiYSFBgNJC6ICQjPIwEBAQcCAR+LOoUFB4QtBbUEI4QUIoJ4AQEB X-IPAS-Result: A0AzFgA731xV//gFNJ1cgxCEAoVVu0CHSwQCAoE8OhMBAQEBAQEBgQpBBYNdAQEDAVYjBQsLDiYSFBgNJC6ICQjPIwEBAQcCAR+LOoUFB4QtBbUEI4QUIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="159027910" Original-Received: from 157-52-5-248.cpe.teksavvy.com (HELO pastel.home) ([157.52.5.248]) by ironport2-out.teksavvy.com with ESMTP; 06 Aug 2015 18:36:54 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4C87B604CF; Thu, 6 Aug 2015 18:36:54 -0400 (EDT) In-Reply-To: <874ml8t7cr.fsf@gmail.com> (Dmitri Paduchikh's message of "Mon, 13 Jul 2015 20:17:24 +0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:188521 Archived-At: > It is not clear for me whether this approach will help to solve the current > problem of macros wrapping fragments of code in lambdas. BTW, the real solution, which is simple and reliable is to not use called-interactively-p at all, and use an argument instead: (defun foo (bar &optional called-interactively) (interactive (list toto t)) ...here.I.can.use.called-interactively...) called-interactively-p is fundamentally a kludge and is better avoided. Stefan