From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: interactive? Date: Mon, 18 Jan 2010 14:44:32 +0100 Message-ID: References: <27210523.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263822370 32683 80.91.229.12 (18 Jan 2010 13:46:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2010 13:46:10 +0000 (UTC) Cc: Emacs-devel@gnu.org To: "alin.s" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 18 14:46:00 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NWrvb-0008KM-4K for ged-emacs-devel@m.gmane.org; Mon, 18 Jan 2010 14:45:59 +0100 Original-Received: from localhost ([127.0.0.1]:47604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWrvb-0003a8-VB for ged-emacs-devel@m.gmane.org; Mon, 18 Jan 2010 08:45:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWruT-00031Q-Cc for emacs-devel@gnu.org; Mon, 18 Jan 2010 08:44:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWruO-0002vh-C9 for Emacs-devel@gnu.org; Mon, 18 Jan 2010 08:44:48 -0500 Original-Received: from [199.232.76.173] (port=35059 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWruO-0002vX-6c for Emacs-devel@gnu.org; Mon, 18 Jan 2010 08:44:44 -0500 Original-Received: from mx1.redhat.com ([209.132.183.28]:13703) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWruN-0001ck-OV for Emacs-devel@gnu.org; Mon, 18 Jan 2010 08:44:43 -0500 Original-Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0IDiaol021629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 18 Jan 2010 08:44:36 -0500 Original-Received: from hase.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0IDiWgD012131; Mon, 18 Jan 2010 08:44:34 -0500 X-Yow: PEGGY FLEMING is stealing BASKET BALLS to feed the babies in VERMONT. In-Reply-To: <27210523.post@talk.nabble.com> (alin s.'s message of "Mon, 18 Jan 2010 05:32:02 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:120201 Archived-At: "alin.s" writes: > Where in the evaluator one makes the diff between interactive and > non-interactive? commandp is a built-in function in `C source code'. (commandp function &optional for-call-interactively) Non-nil if function makes provisions for interactive calling. This means it contains a description for how to read arguments to give it. The value is nil for an invalid function or a symbol with no function definition. Interactively callable functions include strings and vectors (treated as keyboard macros), lambda-expressions that contain a top-level call to `interactive', autoload definitions made by `autoload' with non-nil fourth argument, and some of the built-in functions of Lisp. Also, a symbol satisfies `commandp' if its function definition does so. If the optional argument for-call-interactively is non-nil, then strings and vectors are not accepted. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."