From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: Scratch buffer annoyance Date: Wed, 18 Jul 2007 15:53:24 +0000 (UTC) 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> <87zm1vowqn.fsf@baldur.tsdh.de> <87r6n7otnk.fsf@baldur.tsdh.de> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1184774013 15834 80.91.229.12 (18 Jul 2007 15:53:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2007 15:53:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 18 17:53:28 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 1IBBqC-00018T-BN for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2007 17:53:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBBqC-0007Vv-1W for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2007 11:53:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBBq9-0007Vq-Fq for emacs-devel@gnu.org; Wed, 18 Jul 2007 11:53:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBBq7-0007Ve-HF for emacs-devel@gnu.org; Wed, 18 Jul 2007 11:53:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBBq7-0007Vb-E3 for emacs-devel@gnu.org; Wed, 18 Jul 2007 11:53:23 -0400 Original-Received: from cpe-69-204-164-144.nycap.res.rr.com ([69.204.164.144] helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IBBq6-0005x4-Uw for emacs-devel@gnu.org; Wed, 18 Jul 2007 11:53:23 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Wed, 18 Jul 2007 15:53:24 +0000 (UTC) In-reply-to: (message from Richard Stallman on Wed, 18 Jul 2007 10:11:24 -0400) X-detected-kernel: Genre and OS details not recognized. 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:75075 Archived-At: 2. provide a variable to set the *scratch* buffer's initial major mode to lisp-interaction-mode. initial-major-mode. * The name of the variable initial-major-mode could mislead; and, * the if clause that implements initial-major-mode fails unless the `*scratch*' buffer is in Fundamental mode. (That is what the clause should do. It is documented. Normally, the buffer is in Lisp Interaction mode. Unfortunately, the Emacs Lisp for the clause tells us that one of the proposals, as written, prevents resetting the mode of the `*scratch*' buffer.) Firstly, the documentation for the `*scratch*' buffer says Major mode command symbol to use for the initial `*scratch*' buffer. which suggests the possibility that `initial' has priority over `*scratch*'. Secondly, emacs/lisp/startup.el says, ;; If *scratch* exists and init file didn't change its mode, initialize it. (if (get-buffer "*scratch*") (with-current-buffer "*scratch*" (if (eq major-mode 'fundamental-mode) (funcall initial-major-mode)) ;; Don't lose text that users type in *scratch*. (setq buffer-offer-save t) (auto-save-mode 1))) If the major mode is Text, the clause will not change the major mode to the value of initial-major-mode. There are many people who never bother to read anything. I understand that. Also, I understand that the goal is to change Emacs so they do not lose because of their lack of reading. That is fine. I just want to make sure that I can return to the traditional, documented intent of `*scratch*'. Lightning burnt out a mother board last summer and even though I have surge protectors, I am turning off and unplugging this computer when the weather looks dicey and I am going away or to sleep. Also, I frequently test a new CVS snapshot of Emacs by doing work on it. So I am often running into `*scratch*' buffer annoyance and would like to end that. -- Robert J. Chassell GnuPG Key ID: 004B4AC8 bob@rattlesnake.com bob@gnu.org http://www.rattlesnake.com http://www.teak.cc