From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: How to disable warnings/questions when using desktop-save-mode? Date: Wed, 23 May 2012 17:31:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3758703c-576a-4155-a1d4-0e4f13c1d97e@jx17g2000pbb.googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1337838623 25995 80.91.229.3 (24 May 2012 05:50:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 May 2012 05:50:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 24 07:50:21 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 1SXQwB-0006op-MJ for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2012 07:50:15 +0200 Original-Received: from localhost ([::1]:48414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXQwB-0007zA-67 for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2012 01:50:15 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!nx01.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!jx17g2000pbb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 76.126.112.84 Original-X-Trace: posting.google.com 1337819498 19166 127.0.0.1 (24 May 2012 00:31:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 24 May 2012 00:31:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: jx17g2000pbb.googlegroups.com; posting-host=76.126.112.84; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5,gzip(gfe) X-Received-Bytes: 2333 Original-Xref: usenet.stanford.edu gnu.emacs.help:192548 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:84952 Archived-At: On May 23, 3:21=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 (Ema= cs 24 > GTK Snapshot version on Xubuntu 12.04). Every time I open another instanc= e 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-save= t) but > I still obtained the warning.] > > 2) A similar problem appears when a new instance is closed and thus write= s 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_setti= ngs.el Xat