emacs-devel
[Top][All Lists]
Advanced

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

Re: Change `customize-save-variable' to work under "emacs -Q"?


From: Stefan Monnier
Subject: Re: Change `customize-save-variable' to work under "emacs -Q"?
Date: Mon, 11 Jul 2011 23:32:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Otherwise all the callers end up doing this very awkward thing:

>       (if (ignore-errors (custom-file))
>           (progn
>             (customize-save-variable 'smtpmail-smtp-server server)
>             (customize-save-variable 'smtpmail-smtp-service port))
>         (setq smtpmail-smtp-server server
>               smtpmail-smtp-service port))

I'd be surprised if `setq' is the right answer (it's probably more like
customize-set or something along these lines), and it deserves
a `message', but other than that I guess it's OK.
We used to actually save, which resulted in overwriting the user's
custom-file with a mostly empty file, so we fixed it by signalling an
error, but I guess that just outputting a message and not saving is
good enough.


        Stefan



reply via email to

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