From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman Newsgroups: gmane.emacs.devel Subject: Re: Brittleness of called-interactively-p Date: Thu, 16 Jul 2015 08:57:50 -0700 Message-ID: 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 1437062292 18636 80.91.229.3 (16 Jul 2015 15:58:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2015 15:58:12 +0000 (UTC) Cc: Dmitri Paduchikh , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 16 17:58:07 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 1ZFlXy-0007Yr-CJ for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2015 17:58:06 +0200 Original-Received: from localhost ([::1]:40846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFlXx-0004HI-Qy for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2015 11:58:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFlXu-0004HB-1C for emacs-devel@gnu.org; Thu, 16 Jul 2015 11:58:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFlXq-0007Lt-Rm for emacs-devel@gnu.org; Thu, 16 Jul 2015 11:58:01 -0400 Original-Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:35548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFlXq-0007Kq-JN for emacs-devel@gnu.org; Thu, 16 Jul 2015 11:57:58 -0400 Original-Received: by pactm7 with SMTP id tm7so45185264pac.2 for ; Thu, 16 Jul 2015 08:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=eZT3gnKsGxo4S1uhJz1Oc2ECtrfZ+rLfU/MSH2rKINM=; b=Tt76CbUl3sMOKjTXzgfSp2z+aNn1afEkkD1r2QmlktW2LGLqKeB6u8GCpNcNsSMCa0 zBr/ZCwuCfNfJlQzNfs6lFNV8oot1f7zk7Yx4z+ywOetEokkNrXo7hniNO/kGHXPr8ZP XIsf0Huuz9nft+BKydfx4s4m5h6AqhyrrhXNz20lVDCxrZRW8kCm1oxTzp6YQGrvhJtH Q2UAOAriHwbnYXZ4MRVR6kpY9QVgNyecKgC+GoQVbHbSZB5fwLnzZrA7N6MRn7cRdjBC Lqkvtd/elm5w9gnnsG7iCFM+xJ8vgVWbcfKvpg8fPdLyzdfL+2kBgTyLoztucdFzeVJK /+WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=eZT3gnKsGxo4S1uhJz1Oc2ECtrfZ+rLfU/MSH2rKINM=; b=M/FXC3Y0AAP1pigyX5aHm91dlkg+bTs/ckKBYCNO3C3uW7dZC/LI5/o9Ywx00jVZQy 65FKkTtthH3p7Q6NRrqyL0yiM6QSDf0snJfw2tTNI3kKH0nUReR34sdTyf7u7Di2A+9J HUwbpsKho4XBQvog0oU5isoRnONZ+gC6wQ9qQjbep4DgJWSH+nPUB/rxBzBYBWt7oRPu ZXPT8KQJ+SZaYv4LVhBAdyjnzzsISIAuVE2KbHW0Qq70ReXszRSDCGRW2+65RQHo4AO3 ZxZitV0VxIuGxtthFWBoFv/LjtSDgvOixTN6WYdZGvq+FkDYrfDZyVRf60sGnknpSlbQ n76w== X-Gm-Message-State: ALoCoQlC6OgAo6VVQciB7NGBgQcPANNAR/24mbap4V4d8ENWAbP6djgqSI8Drpmspl5oIAf83whu X-Received: by 10.68.189.196 with SMTP id gk4mr20028966pbc.11.1437062276241; Thu, 16 Jul 2015 08:57:56 -0700 (PDT) Original-Received: from raman-glaptop2 ([207.198.105.24]) by smtp.gmail.com with ESMTPSA id he9sm8410409pbc.7.2015.07.16.08.57.54 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 16 Jul 2015 08:57:55 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 14 Jul 2015 19:24:58 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22c 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:187901 Archived-At: Speaking from the perspective of developing Emacspeak: Emacspeak uses the "is this an interactive call" heavily -- it provides spoken feedback only if the call is interactive. I originally implemented emacspeak starting in late 1994 and used the test (when (interactive-p)...) in all my code. When interactive-p was deprecated and we moved to the new called-interactive-p -- I was unable to get the behavior I wanted using (called-interactive-p 'interactive) as the test; -- the code ended up chasing its tail given the heavy use of advice. I worked around the problem by defining my own version of the interactive test -- see http://github.com/tvraman/emacspeak -- specifically the implementation of function ems-interactive-p. --