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: Fri, 17 Jul 2015 11:14:35 -0700 Message-ID: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1437156895 10000 80.91.229.3 (17 Jul 2015 18:14:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2015 18:14:55 +0000 (UTC) Cc: dpaduchikh@gmail.com, monnier@IRO.UMontreal.CA, drew.adams@oracle.com, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 17 20:14:49 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 1ZGA9p-0000Pk-B8 for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2015 20:14:49 +0200 Original-Received: from localhost ([::1]:45883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGA9o-0001ma-EO for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2015 14:14:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGA9k-0001kL-4B for emacs-devel@gnu.org; Fri, 17 Jul 2015 14:14:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGA9f-0006SM-29 for emacs-devel@gnu.org; Fri, 17 Jul 2015 14:14:44 -0400 Original-Received: from mail-pd0-x232.google.com ([2607:f8b0:400e:c02::232]:36152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGA9e-0006SB-SY for emacs-devel@gnu.org; Fri, 17 Jul 2015 14:14:39 -0400 Original-Received: by pdjr16 with SMTP id r16so66267020pdj.3 for ; Fri, 17 Jul 2015 11:14:38 -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=pZbqfskJloU7iKn59d0t8eKMdxToMSdoNqPsj/wm1Ao=; b=TbHXpdgrp2EMsioBwIfukQf/7xk+6AEPV400ReEtLnrj+OQLpVcwX5bjlpp5kRCoz2 f+ZrizorSShUmg4YAvuRZyoz/4bRMilr0VDIDDG/YqeEqF3Yd+Dr89B9kdAt0ZO8PTf3 B5WP68jBhKKllNX0gyjMHOZjWwP8HmuFR0wk8oXO7hx/lDZGVxSPt1yR/aImR2BAHaVl GNTsSBO3e58kQW+EabQPBx4IY4U/L7Q8Ucg29dYFKid966e5fcYolKZIhEEOppUEyDPe 0S4zhMQPe+TxfH4r13iXk5MG/v2yfFj0OeBzFccimY2CwekRjYXg/uGe7edwVn2IsLYx ieuA== 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=pZbqfskJloU7iKn59d0t8eKMdxToMSdoNqPsj/wm1Ao=; b=OkWr8VbL7jNd+ls9n/vrrlrpevnMWh9JNY5jAnS8iOZYHhWllwjkqccIOFr8xCeTEM NlDPwY/qm8QOxulhFqsgfQWk4bdaURFCb0dbupRf4niUsAXgchZq9mIbknvT7nKMxI0b rKFH3bg5MlMRQLnn+MdCe6G/BGTYggaqJCzqXHBVNQp/Xk/g7uU2hVsuXiGZdOnQOdOr qQJZyzk8FDsOlQKnH/undZSk8r4zUD7x+dDyNeXW8931OrxsKTxN/4yXMTnTs9CfRKHI dIP032yu2oHpCPZeJyiFHgKVrI3RCNBX3aflKO9Z8muwWa2tDguEmBPKUGiS+VzGxRAL CuCA== X-Gm-Message-State: ALoCoQneWKYb1pzHVrI1zHUgVp0pQR/nwJRjNbzLe/uClM/uwjGoX048LBQRUmc3gEB/WgQHKs2D X-Received: by 10.66.147.68 with SMTP id ti4mr32044068pab.90.1437156878221; Fri, 17 Jul 2015 11:14:38 -0700 (PDT) Original-Received: from raman-glaptop2 (c-73-170-121-60.hsd1.ca.comcast.net. [73.170.121.60]) by smtp.gmail.com with ESMTPSA id ij17sm11993579pac.4.2015.07.17.11.14.36 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 Jul 2015 11:14:37 -0700 (PDT) In-Reply-To: (Richard Stallman's message of "Thu, 16 Jul 2015 21:55:27 -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:c02::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:187933 Archived-At: I'd love to get rid of my implementation of ems-interactive-p:-) The behavior I need is best illustrated by a prototypical use case. When the user presses M-C-f, I want to speak the sexp you moved over. So I achieve this with an advice on backward-sexp (around advice that: A. remembers point, B. Lets backward-sexp do its work C Speaks the region between point and the saved position. Now this advice should only get called when the user presses M-C-f -- or if it's called by some function by doing (call-interactively #'backward-sexp ) So in my advice -- and this is consistent in all of emacspeak's advice I do (when (ems-interactive-p) ...) The old interactive-p did this perfectly. I'm happy to go back and try interactive-p again since Stefan says the implementations are nearly equivalent between it and called-interactive-p. As Drew said earlier on this thread, called-interactively-p is confusing with respect to how it should be used, and specifically for the emacspeak use-case, it's unclear how one calls called-interactively-p with respect to what args to pass it. --