[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Propose to add setup-wizard.el to ELPA
From: |
Philip Kaludercic |
Subject: |
Re: Propose to add setup-wizard.el to ELPA |
Date: |
Sun, 02 Jan 2022 11:58:57 +0000 |
xenodasein--- via "Emacs development discussions." <emacs-devel@gnu.org>
writes:
> Jan 2, 2022, 12:45 by luangruo@yahoo.com:
>
>> xenodasein--- via "Emacs development discussions." <> emacs-devel@gnu.org> >
>> writes:
>>
>>> Basically Custom is an unfinished system, it's code is not easy to
>>> understand, and it does not integrate with the rest of Emacs well, it
>>> especially does not play well with configuring things from init.el
>>> file.
>>>
>>
>> Custom is basically a finished system, and the whole point of it is to
>> make things work so that users will not have to understand it.
>> ...
>> Custom should be understandable for everyone, and I don't see why it
>> isn't.
>>
>
> If you think it a perfect, finished and polished system, I am fearful of the
> damage you will do to both Emacs' code and community.
>
>
>> And contrary to your statements, it integrates with the rest of Emacs
>> quite well. For example, this doesn't work:
>>
>> (setq pixel-scroll-precision-mode t)
>>
>> But this does:
>>
>> (custom-set-variables '(pixel-scroll-precision-mode t))
>>
>> Same goes for `scroll-bar-mode', and so on.
>>
>
> I invite you to compare code of custom-set-variables and setq, for
> setting a single variable, and to see how ridiculous this defense is.
A simple macro like
--8<---------------cut here---------------start------------->8---
(defmacro setc (&rest args)
"Handle ARGS like `setq' using `customize-set-variable'."
(let (body)
(while args
(let* ((var (pop args)) (val (pop args)))
(push `(customize-set-variable ',var ,val) body)))
(macroexp-progn (nreverse body))))
--8<---------------cut here---------------end--------------->8---
could fix that (perhaps expanded to not add itself to the "user" theme
as it would usually be used within a persistent init.el), if added to
the core.
Then all you need to do is replace a setq with a setc.
> There isn't even a function for setting a custom variable and you will
> find a csetq macro popping up in many users init files, if you care to
> look within your community. And no, custom-set-variable isn't it.
--
Philip Kaludercic
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, (continued)
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Lars Ingebrigtsen, 2022/01/04
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Sean Whitton, 2022/01/04
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Po Lu, 2022/01/04
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Lars Ingebrigtsen, 2022/01/05
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Sean Whitton, 2022/01/06
- Re: Propose to add setup-wizard.el to ELPA, Po Lu, 2022/01/02
- RE: [External] : Re: Propose to add setup-wizard.el to ELPA, Drew Adams, 2022/01/02
- Re: Propose to add setup-wizard.el to ELPA,
Philip Kaludercic <=
- Re: Propose to add setup-wizard.el to ELPA, Jean Louis, 2022/01/07
- RE: [External] : Re: Propose to add setup-wizard.el to ELPA, Drew Adams, 2022/01/02
- Re: Propose to add setup-wizard.el to ELPA, Po Lu, 2022/01/02
- Re: Propose to add setup-wizard.el to ELPA, Yuan Fu, 2022/01/02
- RE: [External] : Re: Propose to add setup-wizard.el to ELPA, Drew Adams, 2022/01/02
- Re: Propose to add setup-wizard.el to ELPA, Jean Louis, 2022/01/07
- Re: Propose to add setup-wizard.el to ELPA, Po Lu, 2022/01/07
- Re: Propose to add setup-wizard.el to ELPA, Eli Zaretskii, 2022/01/07
- Re: Propose to add setup-wizard.el to ELPA, Yuan Fu, 2022/01/09
- Re: Propose to add setup-wizard.el to ELPA, Jean Louis, 2022/01/09