unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: making Emacs 22 startup like Emacs 21
Date: Fri, 16 Nov 2007 11:11:17 -0700	[thread overview]
Message-ID: <fhkmfo$20l$1@ger.gmane.org> (raw)
In-Reply-To: <87ejey4jqn.fsf@gmx.de>

Sven Joachim wrote:
> Will Parsons <oudeis@nodomain.invalid> writes:
> 
>> I find the new Emacs 22 startup behaviour quite annoying in that it puts
>> up a splash screen even when Emacs is invoked with a file name.  I've
>> found the inhibit-splash-screen variable to inhibit the splash screen
>> entirely, but I'd like to keep the splash screen if Emacs is invoked
>> without arguments - just inhibit it if a file is specified.  Is there
>> any way to get this to work like Emacs 21?
> 
> I've just put these 2¢ into my .emacs, which seem to do the trick:
> 
> (when (> (length command-line-args) 1)

That doesn't distinguish file names from other command line arguments
such as options.  A better test might be

	(> (length (buffer-list) 2)

assuming that with no file name arguments just the *scratch* and
*Messages* buffers exist.

-- 
Kevin Rodgers
Denver, Colorado, USA

  parent reply	other threads:[~2007-11-16 18:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-09 23:03 making Emacs 22 startup like Emacs 21 Will Parsons
2007-11-10  7:56 ` Sven Joachim
2007-11-10 19:19   ` Will Parsons
2007-11-16 18:11   ` Kevin Rodgers [this message]
     [not found]   ` <mailman.3671.1195236694.18990.help-gnu-emacs@gnu.org>
2007-11-16 18:57     ` Sven Joachim
2007-11-17  1:00       ` Johan Bockgård
2007-11-22  7:14         ` Kevin Rodgers
2007-11-26 18:22           ` David Brodbeck
     [not found]           ` <mailman.4136.1196101342.18990.help-gnu-emacs@gnu.org>
2007-11-26 18:34             ` David Kastrup

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='fhkmfo$20l$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).