Could Emacs be rewritten in Python?
cben at techunix.technion.ac.il
Fri Apr 11 14:47:01 CEST 2003
Beni Cherniavsky wrote on 2003-04-07:
> Patrick K. O'Brien wrote on 2003-04-07:
> > 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?
> I'm not Carl but I had similar thoughts, so I'll try :-).
Sorry for the mis-attribution, I skipped one...
> ... This bringing of many classes together is probably what Carl
> Banks talked about.
Beni Cherniavsky <cben at tx.technion.ac.il>
Never spend several weeks on a single homework - or you will miss a
nice Linux conference ;-(.
More information about the Python-list