Could Emacs be rewritten in Python?
Patrick K. O'Brien
pobrien at orbtech.com
Wed Apr 16 12:02:59 EDT 2003
"Greg Ewing (using news.cis.dfn.de)" <ckea25d02 at sneakemail.com> writes:
> Christian Tanzer wrote:
> > This has nothing to do with touching point but how cursor
> > movements behave. For example, searching doesn't work properly in some
> > cases unless you let `inhibit-point-motion-hooks` to a true value.
>
> Er... if it has nothing to do with touching point, how
> come you have to fiddle with some global that has 'point'
> in its name?
>
> > But there isn't that much difference between an attribute of a buffer
> > object (in the Python sense) and a buffer-locale variable (in the
> > Emacs sense).
>
> The difference is that the buffer (or some other data structure
> from which the buffer can be easily reached) would be an explicit
> argument.
I suppose one could bind attributes (current frame, current buffer,
point) to a module and then import that module everywhere that needed
access to these attributes, rather than passing the attributes as
parameters. So the module would act as a global, but with a structure
that could be navigated. Just a thought.
--
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