* how a function is evaluated?
@ 2007-03-23 16:58 A Soare
0 siblings, 0 replies; 2+ messages in thread
From: A Soare @ 2007-03-23 16:58 UTC (permalink / raw)
To: Emacs Help [help-gnu-emacs]
When I associate a function with a keybinding, that function is called using funcall from command-loop function when I press a function?
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <mailman.1317.1174669267.7795.help-gnu-emacs@gnu.org>]
* Re: how a function is evaluated?
[not found] <mailman.1317.1174669267.7795.help-gnu-emacs@gnu.org>
@ 2007-03-23 17:43 ` Pascal Bourguignon
0 siblings, 0 replies; 2+ messages in thread
From: Pascal Bourguignon @ 2007-03-23 17:43 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-23 17:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-23 16:58 how a function is evaluated? A Soare
[not found] <mailman.1317.1174669267.7795.help-gnu-emacs@gnu.org>
2007-03-23 17:43 ` Pascal Bourguignon
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.