Happy New Year, Mats!
Ar an triochadú lá de mí na Nollaig, scríobh Mats Lidell:
When trying to sync a file to XEmacs I stumbled on that GNU Emacs
since version 24.1 (June 10, 2012) has support for lexical binding. We
seem to have some support for lexical binding (lexical-let) but that
is about it. Anyone who has had a look at how much effort it would
take to implement lexical binding?
The GNU approach is terribly designed, but they have working code and the
functionality is desirable.
I have most of a bytecomp.el sync, with the exception of the lexbind code,
ready to be committed after about two days’ more work. I won’t get to
putting that work in until about February. Once that’s done, porting over
their lexbind would be a matter of a week or two weeks of hard work for
someone who knows the code well.
I guess my immediate sync problems can probably be solved by going
back before the 21.4 release but I fear this will potentially be a
major incompatibility problem for us?
It will. While -*- lexbind: t -*- is a terrible design choice, and while we
shouldn’t write our code to use it (I think using lexical-let, lexical-let*,
and redefining defun* to scope its arguments lexically would be the
stablest, most reliable way to use lexical scope in our code; with the
implementation of lexical-let and lexical-let* moved to the byte compiler
rather than staying in cl-macs.el, of course. Cf my work on #'labels.)
Best,
Aidan
--
‘Tramadol is further fed to cattle […] when working them […] (as draft
animals) so that the animals do not get tired quickly. …’
— Angewandte Chemie, Sept 2014, describing the social context of
(synthetic) tramadol having been found in Cameroon tree roots.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta