Could Emacs be rewritten in Python?

Patrick K. O'Brien pobrien at orbtech.com
Mon Apr 7 09:53:58 EDT 2003


Ian Bicking <ianb at colorstudy.com> writes:

> On Mon, 2003-04-07 at 00:23, Carl Banks wrote:
> > Third, there are a *ton* of functions in Emacs that operate on a
> > certain point in a certain buffer (delete-char, kill-region, etc.).
> > These kinds of functions typically get bound to keystrokes and other
> > sorts of commands, which a user expects to work in the current buffer.
> > If all these functions had to be passed the current buffer as an
> > argument, it would just complicate things.
> 
> Maybe instead they should be methods of the buffer, and a keystroke
> automatically calls a method on the current buffer.

That should be easy enough.

> Managing so many methods from diverse sources might be difficult.  I
> want generic methods, I keep thinking of places where they'd be mighty
> useful... like Mixins but better.

This I don't understand.  Could you elaborate?

-- 
Patrick K. O'Brien
Orbtech      http://www.orbtech.com/web/pobrien
-----------------------------------------------
"Your source for Python programming expertise."
-----------------------------------------------




More information about the Python-list mailing list