From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Re: How to disable warnings/questions when using desktop-save-mode? Date: Thu, 24 May 2012 10:05:43 +0200 Message-ID: <87ipfmuhpk.fsf@math.ethz.ch> References: <3758703c-576a-4155-a1d4-0e4f13c1d97e@jx17g2000pbb.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1337846769 19688 80.91.229.3 (24 May 2012 08:06:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 May 2012 08:06:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xah Lee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 24 10:06:08 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SXT3d-0005h3-4X for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2012 10:06:05 +0200 Original-Received: from localhost ([::1]:49441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXT3c-0006IN-Km for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2012 04:06:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXT3R-0006Hl-8a for help-gnu-emacs@gnu.org; Thu, 24 May 2012 04:05:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXT3K-0002K7-DD for help-gnu-emacs@gnu.org; Thu, 24 May 2012 04:05:52 -0400 Original-Received: from edge10.ethz.ch ([82.130.75.186]:44484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXT3K-0002J8-3G for help-gnu-emacs@gnu.org; Thu, 24 May 2012 04:05:46 -0400 Original-Received: from CAS20.d.ethz.ch (172.31.51.110) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.2.298.4; Thu, 24 May 2012 10:05:41 +0200 Original-Received: from sklar (129.132.146.66) by CAS20.d.ethz.ch (172.31.51.110) with Microsoft SMTP Server (TLS) id 14.1.355.2; Thu, 24 May 2012 10:05:43 +0200 In-Reply-To: <3758703c-576a-4155-a1d4-0e4f13c1d97e@jx17g2000pbb.googlegroups.com> (Xah Lee's message of "Wed, 23 May 2012 17:31:38 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-Originating-IP: [129.132.146.66] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.130.75.186 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84955 Archived-At: Precisely what I was looking for, many thanks, Xah.=20 Xah Lee writes: > On May 23, 3:21=C2=A0am, Marius Hofert 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 (Em= acs 24 >> GTK Snapshot version on Xubuntu 12.04). Every time I open another instan= ce 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 (=3D yes) here automatically? [I tried (setq desktop-sav= e t) but >> I still obtained the warning.] >> >> 2) A similar problem appears when a new instance is closed and thus writ= es 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 (=3D 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_set= tings.el > > Xat