From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Rockway Newsgroups: gmane.emacs.devel Subject: Re: On the new startup and scratch buffer Date: Wed, 13 Feb 2008 11:56:23 -0600 Message-ID: <87zlu4oi48.fsf@bar.jrock.us> References: <47B319AD.3030804@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202925424 15774 80.91.229.12 (13 Feb 2008 17:57:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2008 17:57:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 13 18:57:27 2008 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 1JPLqy-0007sI-8i for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2008 18:57:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPLqU-0003cp-NA for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2008 12:56:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPLqN-0003am-Up for emacs-devel@gnu.org; Wed, 13 Feb 2008 12:56:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPLqM-0003Xq-5Y for emacs-devel@gnu.org; Wed, 13 Feb 2008 12:56:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPLqL-0003XZ-Vs for emacs-devel@gnu.org; Wed, 13 Feb 2008 12:56:26 -0500 Original-Received: from dsl092-134-091.chi1.dsl.speakeasy.net ([66.92.134.91] helo=bar.jrock.us) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JPLqL-0004OA-NP for emacs-devel@gnu.org; Wed, 13 Feb 2008 12:56:25 -0500 Original-Received: from jon by bar.jrock.us with local (Exim 4.69) (envelope-from ) id 1JPLqJ-0002bY-Jx; Wed, 13 Feb 2008 11:56:23 -0600 In-Reply-To: <47B319AD.3030804@alice.it> (Angelo Graziosi's message of "Wed, 13 Feb 2008 17:24:13 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: 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:88965 Archived-At: * On Wed, Feb 13 2008, Angelo Graziosi wrote: > Today, after a bootstrap of fresh CVS, I observe that the startup > buffer is not loaded any more and the scratch buffer is *completely* > empty. > > > Usually the scratch buffer contains (in red) this sentence: > > ============================================================ > ;; This buffer is for notes you don't want to save, and for Lisp evaluation. > ;; If you want to create a file, visit that file with C-x C-f, > ;; then enter the text in that file's own buffer. > ============================================================ > > Is this the correct behaviour? > > The behaviour of the startup screen is confirmed by this > > ----------------------------------------------------------------- > lisp/ChangeLog > [...] > * desktop.el (after-init-hook): Set inhibit-startup-screen to > t after reading the desktop. > ----------------------------------------------------------------- According to the docstring on `initial-scratch-message': "Initial message displayed in *scratch* buffer at startup. If this is nil, no message will be displayed. If `inhibit-startup-screen' is non-nil, then no message is displayed, regardless of the value of this variable." So it looks like this is expected, although annoying. This just looks like a side effect of having this block: (and initial-scratch-message (get-buffer "*scratch*") (with-current-buffer "*scratch*" (when (zerop (buffer-size)) (insert initial-scratch-message) (set-buffer-modified-p nil)))) On the "else" side of the (if (or ... inhibit-startup-screen ...) ...) statement. If people are interested in a change to this behavior (always add text to *scratch* if initial-scratch-message isn't nil), I'll supply a patch. Regards, Jonathan Rockway