Could Emacs be rewritten in Python?

laotseu bdesth at
Sun Apr 6 16:59:27 CEST 2003

Patrick K. O'Brien wrote:
> If you were crazy enough to think that you could create a program
> along the lines of Emacs, but written in Python, how would you go
> about it?  How would you design the domain model for files, buffers,
> windows, and frames?  How would you allow the same level of
> customizability?  How would you map functions (or methods or whatever)
> to keys?  Any thoughts?
> Here is the background.  I'm working on a file editor (called
> PyAlaMode) using wxPython and Scintilla.  It's an extension of the
> PyCrust code base.  I've got a basic version working, and it supports
> editing multiple files and all the usual, basic features.  But I want
> it to be as customizable and extensible as Emacs.  In fact, I want to
> model it after Emacs, so that elisp code could be rewritten in Python
> and work with PyAlaMode.  To do that, I've got to support the same
> primitives as Emacs; expose files, buffers, regions, and windows the
> same way Emacs does; handle the Emacs keybindings and ability to remap
> keys, the same way Emacs does, etc.
> Sound like fun?

Sounds like Real Fun !

Is there a way to get the current code ? (I was recently thinking of 
extending pycrust to make it a full programming environnement, something 
like a mix of Emacs and Smalltalk's programming environnement... Not 
sure if I'm able to do it, but...)


More information about the Python-list mailing list