[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Towards a cleaner build: other output
From: |
Stefan Monnier |
Subject: |
Re: Towards a cleaner build: other output |
Date: |
Thu, 20 Jun 2019 14:55:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>>>> (put '* 'variable-documentation "Most recent value evaluated in IELM.")
>>> Oh, nice. I'll put that in.
>> In `master` you can even use `internal--define-uninitialized-variable`,
>> which does all that `defvar` and `defconst` do except for setting the
>> actual variable. And autoload.el won't recognize it as a definition.
>
> Hm... But is using `internal--define-uninitialized-variable' perhaps
> more obscure than using (defvar sym) (put sym)? If that's something
> that can be used "non-internally", perhaps it should have a different
> name?
It's a brand new function, introduced to fix several corner case
problems in `defcustom`. Maybe it should be less "internal", indeed, but
I don't know yet.
FWIW, the differences with defvar+put that I can see are:
1- the docstring is purecopied if applicable (it's not applicable here).
2- the var is globally declared as dynamically-scoped (rather than only
in the current file).
3- the variable is added to `load-history`.
I'm not sure whether (2) and (3) are advantages or disadvantages in the
present case.
Stefan
- Re: Towards a cleaner build: other output, (continued)
- Re: Towards a cleaner build: other output, Stefan Monnier, 2019/06/18
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/19
- Re: Towards a cleaner build: other output, Stefan Monnier, 2019/06/19
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/20
- Re: Towards a cleaner build: other output, Noam Postavsky, 2019/06/20
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/20
- Re: Towards a cleaner build: other output, Eli Zaretskii, 2019/06/20
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/20
- Re: Towards a cleaner build: other output, Stefan Monnier, 2019/06/20
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/20
- Re: Towards a cleaner build: other output,
Stefan Monnier <=
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/21
- Re: Towards a cleaner build: other output, Stefan Monnier, 2019/06/21
- Re: Towards a cleaner build: done!, Lars Ingebrigtsen, 2019/06/20
- Re: Towards a cleaner build: done!, Noam Postavsky, 2019/06/20
- Re: Towards a cleaner build: done!, Lars Ingebrigtsen, 2019/06/20
- Re: Towards a cleaner build: done!, Eli Zaretskii, 2019/06/22
- Re: Towards a cleaner build: done!, Arash Esbati, 2019/06/25
- Re: Towards a cleaner build: done!, Lars Ingebrigtsen, 2019/06/25
- Re: Towards a cleaner build: other output, Eli Zaretskii, 2019/06/18
- Re: Towards a cleaner build: other output, Stefan Monnier, 2019/06/17