help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what is `editor command loop' ?


From: Pascal J. Bourguignon
Subject: Re: what is `editor command loop' ?
Date: Thu, 31 Dec 2009 18:52:28 +0100
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (gnu/linux)

waterloo <address@hidden> 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/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]