[Top][All Lists]
[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
- Re: Change `customize-save-variable' to work under "emacs -Q"?, (continued)
- Re: Change `customize-save-variable' to work under "emacs -Q"?, Stephen J. Turnbull, 2011/07/11
- Re: Change `customize-save-variable' to work under "emacs -Q"?, Tim Cross, 2011/07/11
- Re: Change `customize-save-variable' to work under "emacs -Q"?, Stephen J. Turnbull, 2011/07/12
- Re: Change `customize-save-variable' to work under "emacs -Q"?, Tim Cross, 2011/07/12
- Re: Change `customize-save-variable' to work under "emacs -Q"?, Stephen J. Turnbull, 2011/07/12
- Re: Change `customize-save-variable' to work under "emacs -Q"?, Tim Cross, 2011/07/13
- Re: Change `customize-save-variable' to work under "emacs -Q"?, Stephen J. Turnbull, 2011/07/13
- Re: Change `customize-save-variable' to work under "emacs -Q"?, Tim Cross, 2011/07/13
- Re: Change `customize-save-variable' to work under "emacs -Q"?, Stephen J. Turnbull, 2011/07/13
- Re: Change `customize-save-variable' to work under "emacs -Q"?, Lars Magne Ingebrigtsen, 2011/07/12
Re: Change `customize-save-variable' to work under "emacs -Q"?,
Stefan Monnier <=
Re: Change `customize-save-variable' to work under "emacs -Q"?, Dave Abrahams, 2011/07/15
Re: Change `customize-save-variable' to work under "emacs -Q"?, Christoph Scholtes, 2011/07/17