From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#3833: 23.0.96; Default for desktop-buffers-not-to-save omits files Date: Sun, 12 Jul 2009 23:35:01 +0300 Organization: JURTA Message-ID: <87ocrp64l6.fsf@mail.jurta.org> References: <87eislivw4.fsf@stupidchicken.com> Reply-To: Juri Linkov , 3833@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247432357 29100 80.91.229.12 (12 Jul 2009 20:59:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jul 2009 20:59:17 +0000 (UTC) Cc: 3833@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 12 22:59:10 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MQ68R-0006zn-EF for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Jul 2009 22:59:10 +0200 Original-Received: from localhost ([127.0.0.1]:47565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQ68P-0002Xn-Iy for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Jul 2009 16:58:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQ676-00020X-2L for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2009 16:57:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQ671-0001yp-16 for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2009 16:57:35 -0400 Original-Received: from [199.232.76.173] (port=59652 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQ670-0001yf-Rn for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2009 16:57:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59073) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MQ670-0006CK-5a for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2009 16:57:30 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6CKvRj0002433; Sun, 12 Jul 2009 13:57:28 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6CKo6qW000962; Sun, 12 Jul 2009 13:50:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 12 Jul 2009 20:50:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3833 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3833-submit@emacsbugs.donarmstrong.com id=B3833.124743143532430 (code B ref 3833); Sun, 12 Jul 2009 20:50:06 +0000 Original-Received: (at 3833) by emacsbugs.donarmstrong.com; 12 Jul 2009 20:43:55 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx2.starman.ee (smtp-out2.starman.ee [85.253.0.4]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6CKhmAR032420 for <3833@emacsbugs.donarmstrong.com>; Sun, 12 Jul 2009 13:43:50 -0700 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.68.11.cable.starman.ee [82.131.68.11]) by mx2.starman.ee (Postfix) with ESMTP id 6156F3F4098; Sun, 12 Jul 2009 23:43:43 +0300 (EEST) In-Reply-To: <87eislivw4.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 12 Jul 2009 14:44:27 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 12 Jul 2009 16:57:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29372 Archived-At: >> I think that variable's default should be nil. I think it is up to >> the user to decide that she doesn't want to record some of the >> buffers/files. It is no business of desktop.el to decide for the >> user. Especially since there is no way of telling desktop.el to >> override the value of desktop-buffers-not-to-save for some specific >> buffer, short of renaming the buffer. > > I agree that .log should be removed. However, the two other items seem > to make sense: Gnus and FTP sessions, because desktop.el can't recreate > those. If you'd like to remove .log, please go ahead and do so on the > trunk. I find the value ".log" useful because it helps not to load usually large log files, but I agree that this should be a personal preference because it is natural to expect that desktop.el will restore all files it can recreate. As for Gnus and FTP sessions, we could try to ignore them using `desktop-modes-not-to-save' or `desktop-buffer-mode-handlers' if they have a non-default mode. >> Similarly with desktop-files-not-to-save: its default should be nil, >> IMO. > > These are remote (Tramp/ange-ftp) files. Again, I think the rationale > is that desktop.el can't recreate them properly. recentf.el uses two predicates `file-remote-p' and `file-readable-p' to decide which files should be kept. Maybe desktop.el should do the same? -- Juri Linkov http://www.jurta.org/emacs/