GNU bug report logs -
#13583
24.3.50; Error when activating auto-revert-mode
Previous Next
Reported by: Dani Moncayo <dmoncayo <at> gmail.com>
Date: Tue, 29 Jan 2013 11:01:02 UTC
Severity: normal
Found in version 24.3.50
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 13583 <at> debbugs.gnu.org (full text, mbox):
>> I try to avoid the customize facility as much as I can, because it
>> doesn't allow to set values based on conditions like the system-type,
>> for example.
>
> Doesn't custom-set-variables work inside an "if" clause? If it does,
> then what's the problem of using it only on some systems?
The problem with that approach is that, if I do some other
customization and save it, the custom facility writes _all_ current
unsaved customization to the custom file, therefore the customization
of `auto-revert-use-notify' would end up in the custom file, which is
not what I want, obviously.
A workaround is to fool the customize facility by marking the relevant
customizations as "saved" just after the call to custom-set-variables,
but that is an ugly hack, IMO.
>> Therefore, I'd like to be able to set `auto-revert-use-notify'
>> directly in my init file, with `setq', but if that is not possible, I
>> will have to adapt myself.
>
> You can run the :set form of the option, with suitable substitutions
> for "variable" and "value", instead of setting the value with setq.
> But then you'd need to change that every time the :set form changes in
> autorevert.el.
So that doesn't seem like a good solution either...
--
Dani Moncayo
This bug report was last modified 12 years and 111 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.