all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Paul Wallington <jpw@shootybangbang.com>
Subject: Re: init loading phenomena
Date: 03 Sep 2002 18:44:29 +0100	[thread overview]
Message-ID: <87znuznf2a.fsf@bundalo.shootybangbang.com> (raw)
In-Reply-To: m3u1l76tlq.fsf@newsguy.com

Harry Putnam <reader@newsguy.com> wrote:

> I've noticed something that seems strange or even incorrect in emacs
> init process on my setup:

It is deliberate.  IMHO it isn't a bug.
 
> I have a site-start.el file in /usr/local/share/emacs/site-lisp, its
> actually a symlink to a file by that name in a local cvs repository.
> 
> I have a line in site-start.el that is supposed to inhibit the splash
> screen. 
> 
>   (setq inhibit-splash-screen t)
> 
> However, when I start emacs, I still get a splash screen.  

This is because `inhibit-splash-screen' is a variable alias for
`inhibit-startup-message' and startup.el does the following:

~line 872 of startup.el: 

    ;; Run the site-start library if it exists.  The point of this file is
    ;; that it is run before .emacs.  There is no point in doing this after
    ;; .emacs; that is useless.
    (if site-run-file 
	(load site-run-file t t))

    ;; Sites should not disable this.  Only individuals should disable
    ;; the startup message.
    (setq inhibit-startup-message nil)

    ;; Load that user's init file, or the default one, or none.

First, it loads your site-start.el file which frobs
`inhibit-splash-screen' (which is the same thing as
`inhibit-startup-message'),

then it disregards that frob, resetting the value of
`inhibit-startup-message' (which is the same thing as
`inhibit-splash-screen'),

then it loads your init file, e.g.: ~/.emacs.  If you frob
`inhibit-startup-message' or `inhibit-splash-screen' (which are
different names for the same thing) in your .emacs or in your
`custom-file' or by loading another library from your init file the
value will not be reset, hence:

[...]
> As mentioned, the setup still displays the splash screen, however if
> I put this in .emacs:
> 
>    (load-file "~/.site-start.el")
> 
> Where ~/.site-start.el is also a symlink to that same file in cvs,
> then the splash screen disappears.

-- 
John Paul Wallington

  reply	other threads:[~2002-09-03 17:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-03 14:48 init loading phenomena Harry Putnam
2002-09-03 17:44 ` John Paul Wallington [this message]
2002-09-03 18:14 ` Kevin Rodgers

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=87znuznf2a.fsf@bundalo.shootybangbang.com \
    --to=jpw@shootybangbang.com \
    /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.