From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Scratch buffer annoyance Date: Tue, 17 Jul 2007 23:15:05 +0100 Message-ID: <73FCF89B-4659-4E0B-B714-2378A0DA405A@gmail.com> References: <877ipev1iv.fsf@stupidchicken.com> <87lkdhqp94.fsf@red-bean.com> <20070716203244.85A0A30116@Psilocybe.Update.UU.SE> <8ACF1129-2D04-4157-83F8-0F0F8928A5D2@gmail.com> <87zm1vowqn.fsf@baldur.tsdh.de> <87r6n7otnk.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184710529 20045 80.91.229.12 (17 Jul 2007 22:15:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2007 22:15:29 +0000 (UTC) Cc: emacs- devel To: bob@rattlesnake.com, mathias.dahl@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 18 00:15:27 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 1IAvKB-0003L6-0H for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2007 00:15:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAvKA-0000Qc-AE for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2007 18:15:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IAvK6-0000QT-Uk for emacs-devel@gnu.org; Tue, 17 Jul 2007 18:15:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAvK5-0000Q8-8d for emacs-devel@gnu.org; Tue, 17 Jul 2007 18:15:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAvK5-0000Q5-0P for emacs-devel@gnu.org; Tue, 17 Jul 2007 18:15:13 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IAvK4-0001S6-Kf for emacs-devel@gnu.org; Tue, 17 Jul 2007 18:15:12 -0400 Original-Received: by nf-out-0910.google.com with SMTP id f5so121260nfh for ; Tue, 17 Jul 2007 15:15:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=UUX+18ZL8j6wrbg7CI355slu1vTfAR1nahk2T02+hML3WHCKIRENYuB4LPKUGiIe/tflvTuXtCSNptacZ5mVOzleu59l8s5iRBHyi+slriqFLWvay2WiIVyYg/8nRASQJ9aZXdJXf+2J5tVHT0xvh8q6ocELpj6p39qoTD1qGCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=EXupOxlMJuymXNxU7FdFG8VOL/UuNVP/tgBShLcH+0h4/DTX7cWrpWMo0UcSuEpr1zb1IpGlFZILa2kkGyXQiTmi0RBQJHnHJqzqpCfjek8HHe+OutfJAcme1W8/TXRHXCqYIw5EXqcZKm9JmF9G/ieR0kn5b0lcn+K5bR9HoGA= Original-Received: by 10.82.174.20 with SMTP id w20mr1081617bue.1184710511364; Tue, 17 Jul 2007 15:15:11 -0700 (PDT) Original-Received: from ?10.5.5.200? ( [84.9.229.38]) by mx.google.com with ESMTPS id 31sm789419nfu.2007.07.17.15.15.07 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jul 2007 15:15:07 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.752.2) X-detected-kernel: Linux 2.6 (newer, 2) 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:75028 Archived-At: On 17 Jul 2007, at 20:37, Robert J. Chassell wrote: > 1. provide a variable to prevent automatic saving of the *scratch* > buffer when you exit; 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. > 2. provide a variable to set the *scratch* buffer's initial major > mode > to lisp-interaction-mode. `initial-major-mode' already exists and does just that. > Indeed, the initial-scratch-message says `This buffer > is for notes you don't want to save ...' and the buffer is in > lisp-interaction-mode. I just don't get why people would take "notes" in lisp-interaction-mode. Mathias Dahl wrote: > Another popular editor, vim, seems to work just like that. No way I > can edit as a new user of vim without following the on-screen > instructions. Is that a good thing? I don't think so. Alfred M Szmidt wrote: > That message could be in the scratch buffer, just like for the > splash-screen. Infact, inhibit-splash-screen would become unnecessary > with this scheme, the splash-screen would be *scratch*. One could > then have a inhibit-read-only-splash-screen variable that people could > flip to get what is the current behaviour. Why so complicated? Perhaps one could show an empty buffer that has buffer-offer-save set to t and leave *scratch* the way it is. People would then stop using *scratch* for important stuff that should really be saved, but they could start writing right away. In Aquamacs, we don't display a splash screen, but we display the GNU message and copyrights in the Echo area. People get a *scratch* buffer in text-mode with buffer-offer-save. I think this gets the message across and still allows people to begin their work. But displaying an empty buffer as described before might be even better, if one really doesn't like the idea of a persistent scratch pad.