all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: Jonathan Rockway <jon@jrock.us>
Cc: emacs-devel@gnu.org
Subject: Re: On the new startup and scratch buffer
Date: Wed, 13 Feb 2008 19:08:12 +0100	[thread overview]
Message-ID: <47B3320C.8060800@alice.it> (raw)
In-Reply-To: <87zlu4oi48.fsf@bar.jrock.us>

Jonathan Rockway ha scritto:
> * 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.
> 

I think it would be a good thing, so I vote for it: +1.



Thanks,
    Angelo.





  reply	other threads:[~2008-02-13 18:08 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-13 16:24 On the new startup and scratch buffer Angelo Graziosi
2008-02-13 17:56 ` Jonathan Rockway
2008-02-13 18:08   ` Angelo Graziosi [this message]
2008-02-13 22:45     ` Juri Linkov
2008-02-14  1:37       ` Stefan Monnier
2008-02-14  4:18         ` [patch] " Jonathan Rockway
2008-02-21 16:27     ` Sascha Wilde
2008-02-21 17:04       ` Jonathan Rockway
2008-02-21 23:11         ` Angelo Graziosi
2008-02-28 23:00         ` Juri Linkov
2008-02-28 23:40           ` Juri Linkov
2008-02-29 10:36             ` Eli Zaretskii
2008-02-29 21:31               ` Juri Linkov
2008-03-01  9:13                 ` Eli Zaretskii
2008-02-29 10:34           ` Eli Zaretskii
2008-02-29 23:00           ` Chong Yidong
2008-03-02  2:54             ` Juri Linkov
2008-03-02  9:48               ` Angelo Graziosi
2008-03-02 14:41                 ` Juri Linkov
2008-03-02 15:20               ` Chong Yidong
2008-03-02 16:20                 ` Juri Linkov
2008-03-03 14:01               ` Johan Bockgård
2008-03-03 21:19                 ` Stefan Monnier
2008-03-04  0:34                   ` Juri Linkov
2008-03-12 22:40                 ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B3320C.8060800@alice.it \
    --to=angelo.graziosi@alice.it \
    --cc=emacs-devel@gnu.org \
    --cc=jon@jrock.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.