* what is `editor command loop' ?
@ 2009-12-31 15:51 waterloo
0 siblings, 0 replies; 2+ messages in thread
From: waterloo @ 2009-12-31 15:51 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 120 bytes --]
I know there is a section about it in Elisp. But I can not understand it .
Can you give me a brief instruction?
thanks
[-- Attachment #2: Type: text/html, Size: 133 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: what is `editor command loop' ?
[not found] <mailman.482.1262274677.18930.help-gnu-emacs@gnu.org>
@ 2009-12-31 17:52 ` Pascal J. Bourguignon
0 siblings, 0 replies; 2+ messages in thread
From: Pascal J. Bourguignon @ 2009-12-31 17:52 UTC (permalink / raw)
To: help-gnu-emacs
waterloo <waterloo2005@gmail.com> writes:
> What is `editor command loop' ?
> I know there is a section about it in Elisp. But I can not understand it .
> Can you give me a brief instruction?
An emacs is basically:
(defun emacs ()
(loop
(funcall (aref *keymap* (read-char)))
(when (display-needs-update-p (update-display)))))
This is the editor command loop.
Now of course, all the fun is in filling *keymap*! :-)
--
__Pascal Bourguignon__ http://www.informatimago.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-31 17:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-31 15:51 what is `editor command loop' ? waterloo
[not found] <mailman.482.1262274677.18930.help-gnu-emacs@gnu.org>
2009-12-31 17:52 ` Pascal J. Bourguignon
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).