From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Scratch buffer annoyance Date: Wed, 18 Jul 2007 10:11:42 -0400 Message-ID: References: <877ipev1iv.fsf@stupidchicken.com> <87lkdhqp94.fsf@red-bean.com> <20070716203244.85A0A30116@Psilocybe.Update.UU.SE> <8ACF1129-2D04-4157-83F8-0F0F8928A5D2@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1184767868 23643 80.91.229.12 (18 Jul 2007 14:11:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2007 14:11:08 +0000 (UTC) Cc: kfogel@red-bean.com, ams@gnu.org, sdl.web@gmail.com, emacs-devel@gnu.org To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 18 16:11:03 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 1IBAEy-0002y3-P3 for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2007 16:10:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBAEy-0005iC-5T for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2007 10:10:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBAEg-0005Xs-W8 for emacs-devel@gnu.org; Wed, 18 Jul 2007 10:10:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBAEg-0005XW-Jt for emacs-devel@gnu.org; Wed, 18 Jul 2007 10:10:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBAEg-0005XR-9f for emacs-devel@gnu.org; Wed, 18 Jul 2007 10:10:38 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IBAEf-0006YF-Q1 for emacs-devel@gnu.org; Wed, 18 Jul 2007 10:10:37 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IBAFi-0000Tq-70; Wed, 18 Jul 2007 10:11:42 -0400 In-reply-to: <8ACF1129-2D04-4157-83F8-0F0F8928A5D2@gmail.com> (message from David Reitter on Tue, 17 Jul 2007 16:28:28 +0100) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:75067 Archived-At: - automatically saving *scratch* in a place other than ~/ (where it is out of the way) via auto-save and before exiting Emacs, without any user interaction That is a good idea, but remember that Emacs needs to create the directory if it doesn't exist. So just setting auto-save-file-name isn't quite enough. - automatically restoring *scratch* from that file upon startup (i.e. making it persistent) That could be good, but there should be a message saying "Type M-x erase-buffer to clear this out." - not offering to save it anywhere else Sure. Can we implement this as a minor mode, which could be used for other buffers as well? That way, users could define further persistent buffers that would exist across Emacs sessions. I'd find that useful. That sounds good.