all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Colin Walters <walters@verbum.org>
Subject: Re: splash screen display when Emacs is given arguments
Date: 23 May 2002 19:34:51 -0400	[thread overview]
Message-ID: <1022196891.16292.5052.camel@space-ghost> (raw)
In-Reply-To: <m17Ars3-000IeLC@localhost>

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

[ thank you for not CCing me ]

On Thu, 2002-05-23 at 08:39, Robert J. Chassell wrote:

> I don't know for sure, but suspect that the rational for the change is
> that many installations for novices include a --funcall argument
> provided by a system administrator. 

I don't understand; why wouldn't the sysadmins just frob site-start.el?

>         --eval '(setq inhibit-startup-message t)' \

How about the following patch, which adds a --nosplash argument?

> Incidentally, on using the CVS snapshot of 
>     GNU Emacs 21.2.50.138 (i686-pc-linux-gnu, X toolkit) of 2002-05-22 
> without the inhibit-startup-message variable set to t, I found that
> the text inserted into the Splash screen by ibuffer is confusing.

I agree, it's confusing, and another good reason to revert to the
previous behavior :)




[-- Attachment #2: nosplash.patch --]
[-- Type: text/x-patch, Size: 3730 bytes --]

Index: man/cmdargs.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/man/cmdargs.texi,v
retrieving revision 1.61
diff -u -d -r1.61 cmdargs.texi
--- man/cmdargs.texi	1 Apr 2002 23:05:22 -0000	1.61
+++ man/cmdargs.texi	23 May 2002 23:32:03 -0000
@@ -215,6 +215,12 @@
 and @samp{-batch} have no effect on the loading of this file---this is
 the only option that blocks it.
 
+@item --nosplash
+@opindex --nosplash
+@vindex inhibit-startup-message
+Do not display a splash screen on startup; this is equivlaent to
+setting the variable @code{inhibit-startup-message} to non-nil.
+
 @item -u @var{user}
 @opindex -u
 @itemx --user=@var{user}
Index: lisp/startup.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/startup.el,v
retrieving revision 1.296
diff -u -d -r1.296 startup.el
--- lisp/startup.el	20 Apr 2002 22:25:55 -0000	1.296
+++ lisp/startup.el	23 May 2002 23:32:03 -0000
@@ -70,6 +70,9 @@
 ;; -no-site-file             Do not load "site-start.el".  (This is the ONLY
 ;; --no-site-file            way to prevent loading that file.)
 ;; -------------------------
+;; -nosplash                 Don't display a splash screen on startup.
+;; --nosplash
+;; -------------------------
 ;; -u USER                   Load USER's init file instead of the init
 ;; -user USER                file belonging to the user starting Emacs.
 ;; --user USER
@@ -749,24 +752,25 @@
     ;; does things.
     (while (and (not done) args)
       (let ((longopts '(("--no-init-file") ("--no-site-file") ("--user")
-			("--debug-init") ("--iconic") ("--icon-type")))
+			("--debug-init") ("--iconic") ("--icon-type")
+			("--nosplash")))
 	    (argi (pop args))
 	    (argval nil))
 	;; Handle --OPTION=VALUE format.
-	(if (and (string-match "\\`--" argi)
-		 (string-match "=" argi))
-	    (setq argval (substring argi (match-end 0))
-		  argi (substring argi 0 (match-beginning 0))))
-	(or (equal argi "--")
-	    (let ((completion (try-completion argi longopts)))
-	      (if (eq completion t)
-		  (setq argi (substring argi 1))
-		(if (stringp completion)
-		    (let ((elt (assoc completion longopts)))
-		      (or elt
-			  (error "Option `%s' is ambiguous" argi))
-		      (setq argi (substring (car elt) 1)))
-		  (setq argval nil)))))
+	(when (and (string-match "\\`--" argi)
+		   (string-match "=" argi))
+	  (setq argval (substring argi (match-end 0))
+		argi (substring argi 0 (match-beginning 0))))
+	(unless (equal argi "--")
+	  (let ((completion (try-completion argi longopts)))
+	    (if (eq completion t)
+		(setq argi (substring argi 1))
+	      (if (stringp completion)
+		  (let ((elt (assoc completion longopts)))
+		    (or elt
+			(error "Option `%s' is ambiguous" argi))
+		    (setq argi (substring (car elt) 1)))
+		(setq argval nil)))))
 	(cond
 	 ((member argi '("-q" "-no-init-file"))
 	  (setq init-file-user nil))
@@ -1503,7 +1507,7 @@
 	    ;; and long versions of what's on command-switch-alist.
 	    (longopts
 	     (append '(("--funcall") ("--load") ("--insert") ("--kill")
-		       ("--directory") ("--eval") ("--execute")
+		       ("--directory") ("--eval") ("--execute") ("--nosplash")
 		       ("--find-file") ("--visit") ("--file"))
 		     (mapcar (lambda (elt)
 			       (list (concat "-" (car elt))))
@@ -1555,6 +1559,9 @@
 			      (cons argval command-line-args-left)))
 			 (funcall (cdr tem) argi))
 		     (funcall (cdr tem) argi)))
+
+		  ((string-equal argi "-nosplash")
+		   (setq inhibit-startup-message t))
 
 		  ((member argi '("-f"	;what the manual claims
 				  "-funcall"

  reply	other threads:[~2002-05-23 23:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-22  6:54 splash screen display when Emacs is given arguments Colin Walters
2002-05-23  2:39 ` Miles Bader
2002-05-23  5:30   ` Pavel Janík
2002-05-24 12:06   ` Francesco Potorti`
2002-05-26 20:59     ` Colin Walters
2002-05-23 12:39 ` Robert J. Chassell
2002-05-23 23:34   ` Colin Walters [this message]
2002-05-24 21:14     ` Richard Stallman
2002-05-26 20:57       ` Colin Walters
2002-05-27  1:15         ` Miles Bader
2002-05-27 22:56           ` Richard Stallman
2002-05-27  5:22         ` Eli Zaretskii
2002-05-27 18:44           ` Colin Walters
2002-05-29 10:16             ` Eli Zaretskii
2002-05-24 21:12 ` Richard Stallman
2002-05-24 21:53   ` Robert J. Chassell

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=1022196891.16292.5052.camel@space-ghost \
    --to=walters@verbum.org \
    /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.