From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#17446: 24.4.50; What is the situation around `called-interactively-p'? Date: Sat, 10 May 2014 10:06:36 +0200 Message-ID: <87r442f46r.fsf@gmail.com> References: <87tx8z6sp2.fsf@gmail.com> <819a6ab8-db8e-4176-a778-02218f08e7af@default> <6e5610f3-d741-4d61-903c-a8f3aa8f46fd@default> <87siojasqx.fsf@web.de> <87r442x00n.fsf@gmail.com> <87bnv6mba5.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1399709246 17761 80.91.229.3 (10 May 2014 08:07:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 May 2014 08:07:26 +0000 (UTC) Cc: Michael Heerdegen , 17446@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 10 10:07:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Wj2JR-0005bH-1y for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 May 2014 10:07:17 +0200 Original-Received: from localhost ([::1]:56394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj2JQ-0006sn-IJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 May 2014 04:07:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj2JI-0006j8-4h for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 04:07:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wj2JC-0000Sg-7f for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 04:07:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj2JC-0000S5-3i for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 04:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wj2JB-0006RY-ND for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 04:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 May 2014 08:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17446 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17446-submit@debbugs.gnu.org id=B17446.139970920924742 (code B ref 17446); Sat, 10 May 2014 08:07:01 +0000 Original-Received: (at 17446) by debbugs.gnu.org; 10 May 2014 08:06:49 +0000 Original-Received: from localhost ([127.0.0.1]:57739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wj2Iy-0006R0-Hp for submit@debbugs.gnu.org; Sat, 10 May 2014 04:06:48 -0400 Original-Received: from mail-wi0-f174.google.com ([209.85.212.174]:53132) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wj2Iv-0006Qe-Gy for 17446@debbugs.gnu.org; Sat, 10 May 2014 04:06:46 -0400 Original-Received: by mail-wi0-f174.google.com with SMTP id r20so2351802wiv.1 for <17446@debbugs.gnu.org>; Sat, 10 May 2014 01:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=rR3g/bj0drf/KgmzDO387vvrLhV/Ay0KRWxcRxKK9Ws=; b=0L2xB94+Esr7FFhLBJmweblS/wMOYJF46qZDwdihHN1AmTn28SWRTWMiQzSU77chai YkObeFaLNrwlPPLK8D+He6n4TFoCTRPIb7nFioqeoN9EUFZZtPZCMXY+uVSZUkhopjPK PtjVGfwn2u1XhZpMTwpaRsgeNqaG/MB2RERPL9OY9PpjwG4Z5O1ULse/q1/+/oB1bzUa DmPW1jQN8FViGFWOZMFdvEAm1ev83S2D3Cly8URLNkBVz5f5LSGF54To9caoLwWcSX0S hGpz+nS06ktu3knoK+FtAozPe0bN2Z8wPIJIsBDx+KVcYhLDwkZ+kZrc0TBvqu67l0lL 6spA== X-Received: by 10.180.11.9 with SMTP id m9mr6648061wib.51.1399709199703; Sat, 10 May 2014 01:06:39 -0700 (PDT) Original-Received: from dell-14z (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167]) by mx.google.com with ESMTPSA id j3sm8561028wjw.38.2014.05.10.01.06.37 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 10 May 2014 01:06:38 -0700 (PDT) User-agent: mu4e 0.9.9.6pre3; emacs 24.4.50.1 In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88853 Archived-At: Stefan Monnier writes: >> (apply #'funcall-interactively (car newcmd) (cdr newcmd)) > > No, `newcmd' is an expression, so (cdr newcommand) contains arguments > that need to be evaluated. In some/many cases this evaluation is > trivial (the args are self-quoting, like nil or integers), but sometimes > the args can be things like (region-beginning). Hmm, not sure of this, at least for `repeat-complex-command' something like (region-beginning) is already evaluated and recorded as an integer no ? Oh! ok I see, something like M-: (region-beginning) will be recorded as something like (pp-eval-expression (quote (region-beginning))) >> > (defun funcall-interactively (fun &rest args) > [sample hack to define funcall-interactively in terms of call-interactively] >> This won't work IMO, why fun would be a cons or a byte-code-function ? > > These are the only interesting cases. The other cases (subrp and > symbolp, AFAICT) are trivial. I still don't understand how this would be able to call interactively something like: (count-words-region 234 567 nil) -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997