From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: API changes Date: Sun, 28 Apr 2002 19:45:17 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: References: <3CCAA9FF.4000905@666.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020037719 22155 127.0.0.1 (28 Apr 2002 23:48:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 28 Apr 2002 23:48:39 +0000 (UTC) Cc: emacs-devel@gnu.org, xemacs-design@xemacs.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 171yPH-0005lE-00 for ; Mon, 29 Apr 2002 01:48:39 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 171ySm-0004s2-00 for ; Mon, 29 Apr 2002 01:52:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171yOt-0006M3-00; Sun, 28 Apr 2002 19:48:15 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171yM5-0006Bh-00 for ; Sun, 28 Apr 2002 19:45:21 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g3SNjHA13713; Sun, 28 Apr 2002 19:45:17 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Ben Wing Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3366 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3366 > commandp takes a second optional argument, CALL-INTERACTIVELY, which > indicates whether the given item can be executed by `call-interactively' > (normally, the return value indicates whether the item can be executed > by `command-execute'; this includes vectors and strings, which are not > allowed by `call-interactively'). I always disliked this. I feel like the elisp layer should only have one of the two (i.e. I think that Fcall_interactively should not be exported to elisp and should be replaced by (defalias 'call-interactively 'command-execute)). > this is a clean way of determining, > for example, how to execute a callback in a menu spec or the like -- > such callbacks are defined as "if an interactive thing, use > call-interactively; else, use eval". For what it's worth, `functionp' seems to work just fine for that purpose (after all, if it's a non-interactive function, `eval' won't be much more useful than `call-interactively'). Stefan