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: Sun, 12 Jul 2015 20:17:17 +0500 Message-ID: <87r3odtngi.fsf@gmail.com> References: <871tgeufzt.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1436714252 14321 80.91.229.3 (12 Jul 2015 15:17:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jul 2015 15:17:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 12 17:17:31 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 1ZEJ0V-0003F8-Dn for ged-emacs-devel@m.gmane.org; Sun, 12 Jul 2015 17:17:31 +0200 Original-Received: from localhost ([::1]:51079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEJ0U-0003ee-OZ for ged-emacs-devel@m.gmane.org; Sun, 12 Jul 2015 11:17:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEJ0O-0003Vh-Qx for emacs-devel@gnu.org; Sun, 12 Jul 2015 11:17:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEJ0J-0000Cy-Pr for emacs-devel@gnu.org; Sun, 12 Jul 2015 11:17:24 -0400 Original-Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:36746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEJ0J-0000Cj-Hm for emacs-devel@gnu.org; Sun, 12 Jul 2015 11:17:19 -0400 Original-Received: by lbbpo10 with SMTP id po10so112778752lbb.3 for ; Sun, 12 Jul 2015 08:17:18 -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=fT4lenKZLW6xhEwUZ9Pq4mGCHdjxj70+E/D+S+nu+9w=; b=KYQ+LQPXTdwk06/9hkHo9WZGMDX0lifpQpr1D12V+TRXihBc9VDhnd8UustzQTxWLK mqoyvMUMKR8hWB5aTa4ZsGNjGiFSYl+hk1ryCkuVyoe8+dwiGl8SK+qtxPzqSVaxQdLc N8ALvEXPVQRDZp9iXa1uSnjV5Cu3Iui0ZI7FOLjkSz3o0kLLDsl8BqneNAEvq6nyX8gE s4CcP5kj/+CTUthckz5PnldXaIw+TAGNYZ+AW0e9Y7hWZSK52/t7SvSVzpG1IlOEJDRX lbFSnYFAuoiocii6DdtoW/F35FItYBbQvgExOlwJZ4sGggjhOfbz0ek31jZEMj2nPOfr kU2g== X-Received: by 10.152.121.42 with SMTP id lh10mr28779954lab.0.1436714238829; Sun, 12 Jul 2015 08:17:18 -0700 (PDT) Original-Received: from gmail.com ([46.48.49.226]) by smtp.gmail.com with ESMTPSA id lf2sm3936572lac.39.2015.07.12.08.17.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jul 2015 08:17:18 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 12 Jul 2015 09:53:38 -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::236 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:187823 Archived-At: Stefan Monnier writes: >> 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. SM> That's pretty much what we do. No. Currently, called-interactively-p "returns t if the containing function was called by `call-interactively'." I argue that functions not having interactive form should not have effect on return value.