* What is the entry point of elisp interpreter
@ 2017-03-23 4:00 Pankaj Doharey
2017-03-23 14:26 ` Phillip Lord
2017-03-24 2:16 ` Stefan Monnier
0 siblings, 2 replies; 3+ messages in thread
From: Pankaj Doharey @ 2017-03-23 4:00 UTC (permalink / raw)
To: help-gnu-emacs
Hi Everyone,
I was trying to find the first place in the emacs source code where the elisp interpreter executes the first elisp code. As in what is the entry point where elisp execution begins. Can someone point me to the file where it begins, since the source code is quite huge.
Thanks in advance.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What is the entry point of elisp interpreter
2017-03-23 4:00 What is the entry point of elisp interpreter Pankaj Doharey
@ 2017-03-23 14:26 ` Phillip Lord
2017-03-24 2:16 ` Stefan Monnier
1 sibling, 0 replies; 3+ messages in thread
From: Phillip Lord @ 2017-03-23 14:26 UTC (permalink / raw)
To: Pankaj Doharey; +Cc: help-gnu-emacs
Pankaj Doharey <pankajdoharey@gmail.com> writes:
> Hi Everyone,
>
> I was trying to find the first place in the emacs source code where the elisp
> interpreter executes the first elisp code. As in what is the entry point where
> elisp execution begins. Can someone point me to the file where it begins,
> since the source code is quite huge.
"command_loop" in keyboard.c is probably what you are looking for.
In terms of entry points, emacs.c contains the main method, and it
completes (perhaps in a slightly unintuitive way) with this call.
/* Enter editor command loop. This never returns. */
Frecursive_edit ();
Phil
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What is the entry point of elisp interpreter
2017-03-23 4:00 What is the entry point of elisp interpreter Pankaj Doharey
2017-03-23 14:26 ` Phillip Lord
@ 2017-03-24 2:16 ` Stefan Monnier
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2017-03-24 2:16 UTC (permalink / raw)
To: help-gnu-emacs
> I was trying to find the first place in the emacs source code where the
> elisp interpreter executes the first elisp code. As in what is the entry
> point where elisp execution begins. Can someone point me to the file where
> it begins, since the source code is quite huge.
One good starting point might be the `top-level` variable which just
calls the `normal-top-level` function.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-24 2:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-23 4:00 What is the entry point of elisp interpreter Pankaj Doharey
2017-03-23 14:26 ` Phillip Lord
2017-03-24 2:16 ` Stefan Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).