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: Fri, 17 Jul 2015 18:36:37 +0500 Message-ID: <87k2tysy6y.fsf@gmail.com> References: <871tgeufzt.fsf@gmail.com> <87r3odtngi.fsf@gmail.com> <87380st7c1.fsf@gmail.com> <56ffd903-483b-49cf-acf1-f17c1231537e@default> <21927.61661.861463.374658@retriever.mtv.corp.google.com> <87oajbs7wt.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1437140217 14179 80.91.229.3 (17 Jul 2015 13:36:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2015 13:36:57 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@IRO.UMontreal.CA, drew.adams@oracle.com, "T.V Raman" To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 17 15:36:56 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 1ZG5os-0007lt-BV for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2015 15:36:54 +0200 Original-Received: from localhost ([::1]:44893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG5or-0006kd-Se for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2015 09:36:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG5ol-0006f3-BO for emacs-devel@gnu.org; Fri, 17 Jul 2015 09:36:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG5oj-0007Rx-Dt for emacs-devel@gnu.org; Fri, 17 Jul 2015 09:36:46 -0400 Original-Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:35248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG5od-0007MZ-Ue; Fri, 17 Jul 2015 09:36:40 -0400 Original-Received: by lahh5 with SMTP id h5so61248903lah.2; Fri, 17 Jul 2015 06:36:39 -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=QR1DqRlJiCJjxjA+Ac/Wa1/sYgd4KwUDnSSk+M6ceo4=; b=TsuGg7rRrY/vPXndrgHk1Y3xOsimBLHE2Eoqg+gTZVYNb3RCWgSXolM2RwQkDSqIly tLPYkBL9WVgitN6aC0p5fpGWvJ3lcQ/ZAZ7mTlCNI0hst4L0X2CLy9cvkyQ6xyAL0f4h LA777LxAB2IDeWH5tQfmYT1LmBjPcI7CIByuGN1Ms6ogLlowShRd72KjHG0Blrqoe15+ tIC9jq81KLTR8mzn/OzaG8ju0sB2Brv7k4/WzKmuSxotFK+BgYw7dYf14nQXgiMvF77E AndENczG3gEjNfFnyrLgpxG5dxbu9bEPjteZwnXHjXhTKo2sv/rvMg1frCnm4Oce24Ds GsGw== X-Received: by 10.112.137.164 with SMTP id qj4mr14472140lbb.105.1437140199076; Fri, 17 Jul 2015 06:36:39 -0700 (PDT) Original-Received: from gmail.com ([46.48.49.226]) by smtp.gmail.com with ESMTPSA id ew6sm2817298lbc.40.2015.07.17.06.36.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jul 2015 06:36:38 -0700 (PDT) In-Reply-To: <87oajbs7wt.fsf@gmail.com> (Dmitri Paduchikh's message of "Fri, 17 Jul 2015 09:52:02 +0500") 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:c03::232 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:187926 Archived-At: --=-=-= Content-Type: text/plain I have prepared a simple example to reproduce the problem. In the attachment is a small elisp file testfile.el. Save it and execute: emacs -q -l testfile.el In the started Emacs open some shell script and press TAB. Observe infinite loop running inside advice--called-interactively-skip. I have pressed TAB on an empty line, though probably any other will work as well. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=testfile.el Content-Transfer-Encoding: quoted-printable (require 'advice) (defadvice backward-sexp (after test activate) (when (called-interactively-p 'interactive) (message "interactive"))) (defadvice forward-sexp (after test activate) (when (called-interactively-p 'interactive) (message "interactive"))) --=-=-=--