From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon <pjb@informatimago.com> Newsgroups: gmane.emacs.help Subject: Re: how a function is evaluated? Date: Fri, 23 Mar 2007 18:43:21 +0100 Organization: Informatimago Message-ID: <878xdnyhxi.fsf@voyager.informatimago.com> References: <mailman.1317.1174669267.7795.help-gnu-emacs@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174675128 31283 80.91.229.12 (23 Mar 2007 18:38:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2007 18:38:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 23 19:38:38 2007 Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org> Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HUoen-0004qu-9j for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Mar 2007 19:38:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUogi-0006jv-Pt for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Mar 2007 13:40:32 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: individual.net G5OIqcgUnaeUQXLgMCZ+JgGPtOsaEzt+6BNzBp2I/lFDMkzQcX Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux) Cancel-Lock: sha1:tHVIG4cu1j94Uij7OSGK5b7xU6s= Original-Xref: shelby.stanford.edu gnu.emacs.help:146538 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/help-gnu-emacs> List-Post: <mailto:help-gnu-emacs@gnu.org> List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe> Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42142 Archived-At: <http://permalink.gmane.org/gmane.emacs.help/42142> A Soare <alinsoar@voila.fr> writes: > When I associate a function with a keybinding, that function is > called using funcall from command-loop function when I press a > function? Basically, yes. Actually, the primitive in lisp to call functions is apply, so it is possible that it doesn't go thru funcall, but thru apply. But in emacs, there are other "primitives", and I guess it's call-interactively that is used to call commands, from keybindings. Note that you cannot bind to a key a random function in emacs. You can only bind (and actually call it), a _command_, which is a function that has an interactive declaration. -- __Pascal Bourguignon__ http://www.informatimago.com http://pjb.ogamita.org