[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to disable warnings/questions when using desktop-save-mode?
From: |
Marius Hofert |
Subject: |
Re: How to disable warnings/questions when using desktop-save-mode? |
Date: |
Thu, 24 May 2012 10:05:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Precisely what I was looking for, many thanks, Xah.
Xah Lee <xahlee@gmail.com> writes:
> On May 23, 3:21 am, Marius Hofert <marius.hof...@math.ethz.ch> wrote:
>> Hi,
>>
>> 1) I have enabled desktop-save mode (with (desktop-save-mode 1)) since I
>> find this
>> quite useful. I recently started to use different instances of Emacs (Emacs
>> 24
>> GTK Snapshot version on Xubuntu 12.04). Every time I open another instance of
>> Emacs, I receive "...Warning: desktop file appears to be in
>> use by PID ... Use it anyway? (y or n)". How can I tell Emacs to not ask me
>> but
>> always choose y (= yes) here automatically? [I tried (setq desktop-save t)
>> but
>> I still obtained the warning.]
>>
>> 2) A similar problem appears when a new instance is closed and thus writes
>> to the
>> desktop file. When closing an older instance afterwards one then obtains
>> "... Desktop file is more recent than the one loaded. Save anyway?". How can
>> I
>> tell Emacs to not ask me but choose y (= yes) automatically?
>>
>> Maybe 2) is solved by choosing "no" in 1) [which I guess is also fine in
>> most cases].
>>
>> Cheers,
>>
>> Marius
>
> see the desktop section at
>
> http://code.google.com/p/ergoemacs/source/browse/trunk/ergoemacs/init_settings.el
>
> Xat