From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: A wish, a plea Date: Fri, 22 Jun 2007 10:27:41 -0700 Message-ID: <87ps3nq4qa.fsf@red-bean.com> References: <4679F561.4030600@hacksaw.org> <87d4zomyiw.fsf@red-bean.com> <467AE609.20700@gnu.org> <87k5twjyfs.fsf@red-bean.com> Reply-To: Karl Fogel NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182533274 29139 80.91.229.12 (22 Jun 2007 17:27:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Jun 2007 17:27:54 +0000 (UTC) Cc: hacksaw@hacksaw.org, emacs-devel@gnu.org, jasonr@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 22 19:27:52 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 1I1mvG-0003ld-EW for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2007 19:27:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1mvF-0002BU-Qn for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2007 13:27:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1mvC-0002B7-Uw for emacs-devel@gnu.org; Fri, 22 Jun 2007 13:27:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1mvB-0002Au-Fd for emacs-devel@gnu.org; Fri, 22 Jun 2007 13:27:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1mvB-0002Ar-AD for emacs-devel@gnu.org; Fri, 22 Jun 2007 13:27:45 -0400 Original-Received: from sanpietro.red-bean.com ([66.146.193.61]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1mv9-00054x-Bl; Fri, 22 Jun 2007 13:27:43 -0400 Original-Received: from localhost ([127.0.0.1]:52913 ident=kfogel) by sanpietro.red-bean.com with esmtp (Exim 4.63) (envelope-from ) id 1I1mv7-0001HS-MR; Fri, 22 Jun 2007 12:27:41 -0500 In-Reply-To: (Richard Stallman's message of "Fri\, 22 Jun 2007 12\:24\:47 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.6 (newer, 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:73640 Archived-At: Richard Stallman writes: > We can't get rid of the problem by changing the initial buffer. Emacs > normally starts up with no files visited, and it has to have some > current buffer. Whatever that buffer is, it will raise the same issue. > > So I think we should do these things: > > 1. Arrange to set buffer-offer-save to t in *scratch* > if it is ever changed. If a buffer starts out unchanged, and is never changed, then buffer-offer-save won't cause the user to be prompted to save on exit, right? (IOW, I think the above is equivalent to just "set buffer-offer-save to t".) If we have our own initial text in the buffer, we can just initialize buffer-modified-p to nil. > 2. Turn on auto-saving for it. (Just how Emacs should check for an > auto-save file for *scratch* could take some fine tuning.) Yes, for whatever initial selected buffer we have ("*unnamed*" or "*scratch*" or whatever). > 3. Maybe also start it out read-only. What would this solve? (I've seen a lot of new users flail around with vi, wondering why they can't just start typing when they open it.) > 4. Maybe also pop up a warning if the user types more than 500 > self-inserting characters in *scratch* without ever doing Lisp > evaluation. As long as we're autosaving, I'm not sure that's necessary. (I'm assuming that proposal applies to any default-selected buffer, whether "*scratch*" or some other name.) -Karl