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: Sun, 12 Jul 2015 09:53:38 -0400 Message-ID: References: <871tgeufzt.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1436709236 7086 80.91.229.3 (12 Jul 2015 13:53:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jul 2015 13:53:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitri Paduchikh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 12 15:53:48 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 1ZEHhT-0008D3-U4 for ged-emacs-devel@m.gmane.org; Sun, 12 Jul 2015 15:53:48 +0200 Original-Received: from localhost ([::1]:50897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEHhT-00015m-0Y for ged-emacs-devel@m.gmane.org; Sun, 12 Jul 2015 09:53:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEHhQ-00015h-Ak for emacs-devel@gnu.org; Sun, 12 Jul 2015 09:53:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEHhM-0001Qr-9s for emacs-devel@gnu.org; Sun, 12 Jul 2015 09:53:44 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:41269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEHhM-0001QM-5G for emacs-devel@gnu.org; Sun, 12 Jul 2015 09:53:40 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A2FgA731xV/2cGNJ1cgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQcCAR+LOoUFB4QtBbUEI4QUIoJ4AQEB X-IPAS-Result: A0A2FgA731xV/2cGNJ1cgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQcCAR+LOoUFB4QtBbUEI4QUIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="129838905" Original-Received: from 157-52-6-103.cpe.teksavvy.com (HELO pastel.home) ([157.52.6.103]) by ironport2-out.teksavvy.com with ESMTP; 12 Jul 2015 09:53:38 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 82D526172E; Sun, 12 Jul 2015 09:53:38 -0400 (EDT) In-Reply-To: <871tgeufzt.fsf@gmail.com> (Dmitri Paduchikh's message of "Sun, 12 Jul 2015 10:00:54 +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:187818 Archived-At: > I would like to make a suggestion. All these problems can be resolved by > introducing a special (dynamically bound) variable. Each call -- not only > interactive -- to an interactive function would rebind it to the value > providing all the necessary information about interactiveness of this call. That's pretty much what we do. It still breaks down when you debug/advise it. Stefan