[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-
From: |
Stefan Monnier |
Subject: |
Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode |
Date: |
Mon, 19 Oct 2015 09:31:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
>> A custom var shouldn't be modified programmatically.
> Out of curiosity: why?
Because Custom then can't change those chunks of code in order to get
the desired value.
E.g. there's a (setq foo 4) somewhere and the user uses Custom to set
`foo' to 3. How is customize-save going to make sure that next time
Emacs starts, `foo' will be set to 3 rather than 4?
> I setq all my defcustoms, since I don't use Customize.
As a user you're free not to (setq foo 4) in your ~/.emacs, of course,
and since you don't use Custom, Custom won't have to try and set `foo',
so everything's fine. And if you do try and set `foo' via Custom, then
Custom will rightfully complain and you'll just get what you deserve.
But as a package author, such a decision is very different: using (setq
foo 4) or add-hook in your package means that all your users will have
problems if they try to set this var via Custom.
Stefan
- Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode, Stefan Monnier, 2015/10/17
- Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode, Artur Malabarba, 2015/10/18
- Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode, Stefan Monnier, 2015/10/18
- Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode, Marcin Borkowski, 2015/10/19
- Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode,
Stefan Monnier <=
- Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode, Kaushal Modi, 2015/10/19
- RE: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode, Drew Adams, 2015/10/19
- Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode, Eli Zaretskii, 2015/10/19
- Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode, Kaushal Modi, 2015/10/19
- Re: [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode, Eli Zaretskii, 2015/10/19