On Mon, Mar 24, 2025 at 02:56:21PM -0700, Xiyue Deng wrote:
> Agustin Martin <agmar...@debian.org> writes:
...
> > As long as no lexical binding is used, code should work the same in Emacs
> > and XEmacs. However, if lexical binding is ever used in this file, it will
> > not work as expected in XEmacs. I think setting it to nil should force the
> > same behavior in both Emacs and XEmacs.
> >
> 
> Just trying to understand this better: does using "lexical-binding: t"
> already causing issue with the current XEmacs, or this is theoretical?
> If it's the former, how does it break XEmacs?  I cannot seem to find any
> reference that XEmacs reacts to lexical-binding directives through
> searching.

Hi,

AFAIK current code does not use lexical binding, so currently there is no
difference in practice between setting lexical-binding to `t' or to `nil',
neither for Emacs nor for XEmacs. 

My concern is that if lexical binding is ever used in this file, behavior
might be different between Emacs and XEmacs (yes, this is hypothetical).

Regarding current status of XEmacs, seems that there is some (very) slow
developent at

https://foss.heptapod.net/xemacs/ 

but the real thing is that manpower behind Emacs and XEmacs are not
comparable. 

I read somewhere that people behind XEmacs planned some sort of lexical
binding implementation, but they did not like the Emacs way of declaring
it. So, the best way for current compatibility may be not to use lexical
binding when possible.

Regards,

-- 
Agustin

Reply via email to