emacs-devel
[Top][All Lists]
Advanced

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

Re: Clojure mode


From: Stefan Monnier
Subject: Re: Clojure mode
Date: Mon, 28 Aug 2023 23:21:50 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

> How would your idea compare to this?:
>
>     https://elpa.gnu.org/packages/gnu-elpa.html
>
> If the idea is similar, perhaps you could try to work your ideas into
> that package.

FWIW, that package has some serious implementation issues:

If you do (autoload 'closure-mode ...) and arrange for that autoload to
prompt the user to install the package (which is how the `gnu-elpa`
works), it tends to cause problems in all kinds of circumstances.

The "easy" ones look like:
- When the users already said they're not interested.

The harder ones look like:
- When the caller already decided to use `clojure-mode` rather than
  something else because it's `fboundp`.
- When the function wasn't called at all, but instead someone just asked
  to see its doc (and it somehow triggered an autoload).
- When the function wasn't called at all, but instead the macroexpander
  decided to autoload the function just to see what it's about.
...
A grep of `autoload-do-load` will give you an idea of the breadth of
the problem.

Maybe we should go for a different implementation strategy.


        Stefan




reply via email to

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