From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.help Subject: Re: auto-saving files Date: Mon, 24 May 2010 23:07:52 +0200 Message-ID: <87k4qtvwif.fsf@engster.org> References: <87k4qwktti.fsf@engster.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274737040 14082 80.91.229.12 (24 May 2010 21:37:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 May 2010 21:37:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 24 23:37:18 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OGfKn-0005Tv-IP for geh-help-gnu-emacs@m.gmane.org; Mon, 24 May 2010 23:37:17 +0200 Original-Received: from localhost ([127.0.0.1]:46234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGfFo-00023y-Un for geh-help-gnu-emacs@m.gmane.org; Mon, 24 May 2010 17:32:09 -0400 Original-Received: from [140.186.70.92] (port=41225 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGfF6-00020f-LE for help-gnu-emacs@gnu.org; Mon, 24 May 2010 17:31:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGfEx-0002sF-KV for help-gnu-emacs@gnu.org; Mon, 24 May 2010 17:31:24 -0400 Original-Received: from m61s02.vlinux.de ([83.151.21.164]:58829) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGfEx-0002qx-G2 for help-gnu-emacs@gnu.org; Mon, 24 May 2010 17:31:15 -0400 Original-Received: from dslc-082-082-172-188.pools.arcor-ip.net ([82.82.172.188] helo=spaten) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1OGesM-0003ih-DM; Mon, 24 May 2010 23:07:54 +0200 In-Reply-To: (Andrea Crotti's message of "Mon, 24 May 2010 10:00:59 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) Mail-Copies-To: never X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73756 Archived-At: Andrea Crotti writes: > David Engster writes: > >> >> I guess you mean the .newsrc-dribble file? I'm using this: >> >> (add-hook 'gnus-started-hook >> (lambda () >> (when (buffer-live-p gnus-dribble-buffer) >> (with-current-buffer gnus-dribble-buffer >> (setq buffer-save-without-query t))))) >> >> This will get .newsrc-dribble automatically saved by >> save-some-buffers. The other newsrc-files are usually not kept open >> during a Gnus session. >> > > Ok great I think it's more then enough :) > But why by the way gnus must keep a buffer open for it's own job? The dribble file is used to reconstruct Gnus' state in case Emacs/Gnus crashes or quits in an unclean way. For this to work the dribble file must be kept open so that it gets auto-saved. You can set gnus-use-dribble-file to 'nil', but then you will lose your current state in case of a crash, so I'd rather not do that. -David