Adrian Aichner <aichner(a)ecf.teradyne.com> writes:
Hrvoje>
"c:\\Winnt\\Profiles\\AichnerA\\autosave\\#c:\\Winnt\\Profiles\\AichnerA\\N
Hrvoje> ews\\drafts\\drafts\\1#"
Hrvoje> Is that the default? Why is auto-save-directory set to
Hrvoje> anything other than nil? It defaults to nil under Unix.
Umpf! Thanks for pointing this out. As a service to he XEmacs
community I load sample.emacs from within my site-start.el and go
from there. This way I notice if some recommended practice changes
or sample.emacs breaks so some reason or other. sample.emacs
changes auto-save defaults.
That is a very good and useful idea; thanks for doing that.
Yesterday I tried customizing the variables in question via
customize-variable but these customizations didn't show up in
.emacs.
Today, encouraged by your mail, I tried again and all is just dandy!
Strange...
>> (defcustom auto-save-directory nil
>>
>> ;; Don't make this user-variable-p, it should be set in .emacs
>> and ;; left at that. In particular, it should remain constant
>> across ;; several Emacs session to make recover-all-files work.
>>
>> ;; However, it's OK for it to be customizable, as most of the
>> ;; customizable variables are set at the time `.emacs' is read.
>> ;; -hniksic
>>
>> I fail to see how and why a user of the trusting kind should
>> have to figure out that his customization of
>> auto-save-directory (even though one can set it for the current
>> session) does not get saved in (custom-set-variables ...)
Hrvoje> What on earth do you mean by that? Are you sure you
I thought the comment indicated the variable couldn't be changed and
saved via customize.
The comment wants to say that writing
(setq auto-save-directory "something") ; or M-x set-variable ...
in the middle of your session is a bad idea; you have to set the
variable in .emacs for it to work consistently. So making it a
user-option (user-options are variables the docstring of which begins
with `*') would be wrong because it would "invite" people to set it
interactively, which doesn't work.
However, it does make sense to use Customize with that variable
because the customization will be stored at the end of .emacs. So, in
Customize, `Set' will not do the right thing, but `Save' will.
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Idle RAM is the Devil's playground.