[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lift {global,local}-key-binding to Lisp

From: Óscar Fuentes
Subject: Re: Lift {global,local}-key-binding to Lisp
Date: Fri, 15 Jan 2021 05:16:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> Emacs will be around in 40-50 years still, and we should maintain it
>> with that in mind.  Every time we make code more readable and
>> maintainable, we make our life easier in the long run.
> I don't really see how moving stuff to Lisp in these cases makes the
> code more readable or maintainable.  You basically wrote the same code
> in Lisp as it was in C.
>> Of course, any such change taken in isolation will look like something
>> we could also live without, but many such incremental improvements over
>> time will start to make a difference for the better.  Clean and
>> maintainable code is a good thing, and Lisp is better for that than C.
> I disagree, so let's please not do that unless we also add some
> significant improvements or simplification.

Along the years you repeatedly and justly expressed concerns about the
future maintenance of the C code base due to lack of hackers with the
required skills. Anything that reduces the number of lines of C will
mitigate that concern. Plus, moving things to Elisp will remove the
requirement of knowing C (and all its Emacs-specifc idioms) for hacking
on the corresponding features.

I look forward to the time when, thanks to native-comp and FFI,
everything is implemented on Elisp except for a tiny C core. Looking at
the Emacs C source code it is clear that it was written with an
"i-would-rather-be-doing-this-on-Lisp" mindset. Let's go for the real

reply via email to

[Prev in Thread] Current Thread [Next in Thread]