From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Scratch buffer annoyance Date: Mon, 16 Jul 2007 01:52:32 +0300 Organization: JURTA Message-ID: <87hco5s2hf.fsf@jurta.org> References: <877ipev1iv.fsf@stupidchicken.com> <36204694-4F27-4164-B33E-E62A29EA9842@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184540239 26704 80.91.229.12 (15 Jul 2007 22:57:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2007 22:57:19 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 00:57:18 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IAD1g-0004dY-FY for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2007 00:57:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAD1g-0001cy-1N for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2007 18:57:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IAD0h-00013m-B6 for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:56:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAD0e-00012j-FW for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:56:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAD0e-00012d-B0 for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:56:12 -0400 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IAD0d-00067u-Nl for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:56:12 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1IAD0b-000Nfy-DB; Mon, 16 Jul 2007 01:56:09 +0300 In-Reply-To: <36204694-4F27-4164-B33E-E62A29EA9842@gmail.com> (David Reitter's message of "Sun\, 15 Jul 2007 23\:19\:51 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Scanner-Signature: 308c5668300cb665e09cc4617523e4c8 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1219 [July 15 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: FreeBSD 4.8-5.1 (or MacOS X 10.2-10.3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74861 Archived-At: > But why do the auto-save files have to go in ~/, and not somewhere where > they don't annoy the user? I have many backup files in ~/.emacs.d/auto-save-list/, and they don't bother me in this directory. So scratch backup files could go to a special directory like ~/.emacs.d/scratch/. > Why is there more than one auto-save file? Isn't that a bug? With a proper implementation, more than one auto-save file will be necessary only for many simultaneous Emacs sessions. > Why is the user asked at all whether *scratch* should be saved? That is > annoying. I'm one of the few people who could benefit from saving the scratch buffer because I often forget to save some "expiremental" pieces of code in it so I need to have a window with the scratch buffer always visible to not forget to save it, and this is inconvenient. But the current implementation with asking the question and leaving auto-save files everywhere is very annoying. > If anything, *scratch* should be automatically persistent. It's still > not meant to be a buffer that is saved to a user-managed file. It's just > supposed to be persistent so that restarting Emacs doesn't have > a devastating effect! I agree that this would be a better solution to make it automatically persistent without asking questions. So after restarting Emacs, it could restore the old content of the scratch buffer, and automatically save it after modifications. -- Juri Linkov http://www.jurta.org/emacs/