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: Fri, 09 May 2014 20:47:04 +0200 Message-ID: <87r442x00n.fsf@gmail.com> References: <87tx8z6sp2.fsf@gmail.com> <819a6ab8-db8e-4176-a778-02218f08e7af@default> <6e5610f3-d741-4d61-903c-a8f3aa8f46fd@default> <87siojasqx.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1399661325 1818 80.91.229.3 (9 May 2014 18:48:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 May 2014 18:48:45 +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 Fri May 09 20:48:39 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 1WipqW-0007En-RW for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 May 2014 20:48:36 +0200 Original-Received: from localhost ([::1]:54042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WipqW-0001uY-DH for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 May 2014 14:48:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wipq4-0001GG-VK for bug-gnu-emacs@gnu.org; Fri, 09 May 2014 14:48:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wippz-0000kd-8D for bug-gnu-emacs@gnu.org; Fri, 09 May 2014 14:48:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wippz-0000kX-5J for bug-gnu-emacs@gnu.org; Fri, 09 May 2014 14:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wippy-0000h4-KI for bug-gnu-emacs@gnu.org; Fri, 09 May 2014 14:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 May 2014 18:48:02 +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.13996612372598 (code B ref 17446); Fri, 09 May 2014 18:48:02 +0000 Original-Received: (at 17446) by debbugs.gnu.org; 9 May 2014 18:47:17 +0000 Original-Received: from localhost ([127.0.0.1]:57255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WippF-0000fo-6Q for submit@debbugs.gnu.org; Fri, 09 May 2014 14:47:17 -0400 Original-Received: from mail-wg0-f45.google.com ([74.125.82.45]:64285) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WippD-0000fa-2v for 17446@debbugs.gnu.org; Fri, 09 May 2014 14:47:15 -0400 Original-Received: by mail-wg0-f45.google.com with SMTP id m15so4427320wgh.16 for <17446@debbugs.gnu.org>; Fri, 09 May 2014 11:47:09 -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=Wl1WKyxHl/4MksfOvEQJ3kVTpMraJE4FmgG44GCu0aE=; b=zUECFMKf1QPmf+/bTQxBX/PI7hcQ01NUjTEo0R5TKPUZuAWbb5jLLzz42mmiwdvUNP mOsI8U/Yf/6y3mE0c4kuXL1dVQs2qO46Cthz8cEIUUFrQGeVLDfnOGjVRkIMBPIaCc7c RZZG+zs72+UBdXXF3Zt64ml3UksXLf+d+LWKWEDiYHvvxK1A0tlLXDPbPk6UEk8+QcnG UeK0kgVOGPErYehsIpwDLB9FP0KymdkzXfgkd2kdpdVUS4x/IQ1V6JaS543YymH8kSAz R3EOOAA+6VJSvRc5DH6LkbAtfjzYcjg+GXVqHM95eYYgtkmXQC3XNXRnXFgwirp1EdG9 dkkw== X-Received: by 10.194.63.196 with SMTP id i4mr9772778wjs.50.1399661228880; Fri, 09 May 2014 11:47:08 -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 ho2sm503064wib.15.2014.05.09.11.47.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 09 May 2014 11:47:07 -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:88835 Archived-At: Stefan Monnier writes: >>> > Before we go about doing that, I'd want to know one more thing: how did >>> > icicles and helm does with it, in previous versions of Emacs? >>> Icicles did nothing - the bug existed, just as in vanilla Emacs. > > In which sense did it exist in vanilla Emacs? (eval (count-words nil nil)) => eval: Wrong type argument: integer-or-marker-p, nil We were using a condition-case returning an error message in such cases. See https://lists.gnu.org/archive/html/emacs-bug-tracker/2013-08/msg00161.html >> It was the same with helm. > > IOW, this is a long standing problem, for which > called-interactively-p-functions provides a limited workaround? Yes, seems fragile too. Another approch would be to allow more args to `call-interactively', this would allow one to use: (apply 'call-interactively '(sexp arg1 arg2 arg...)) But not sure this would cover all use cases. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997