Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

what is `editor command loop' ?

0 views
Skip to first unread message

waterloo

unread,
Dec 31, 2009, 10:51:07 AM12/31/09
to help-gn...@gnu.org
I know there is a section about it in Elisp. But I can not understand it .
Can you give me a brief instruction?

thanks

Pascal J. Bourguignon

unread,
Dec 31, 2009, 12:52:28 PM12/31/09
to
waterloo <waterl...@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/

0 new messages