Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
making Emacs 22 startup like Emacs 21
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Will Parsons  
View profile  
 More options Nov 9 2007, 6:03 pm
Newsgroups: gnu.emacs.help
From: Will Parsons <oud...@nodomain.invalid>
Date: 9 Nov 2007 23:03:11 GMT
Local: Fri, Nov 9 2007 6:03 pm
Subject: making Emacs 22 startup like Emacs 21
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?

- Will


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sven Joachim  
View profile  
 More options Nov 10 2007, 2:56 am
Newsgroups: gnu.emacs.help
From: Sven Joachim <svenj...@gmx.de>
Date: Sat, 10 Nov 2007 08:56:00 +0100
Subject: Re: making Emacs 22 startup like Emacs 21

Will Parsons <oud...@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)
  (setq inhibit-splash-screen t))

Cheers,
       Sven


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Will Parsons  
View profile  
 More options Nov 10 2007, 2:19 pm
Newsgroups: gnu.emacs.help
From: Will Parsons <oud...@nodomain.invalid>
Date: 10 Nov 2007 19:19:42 GMT
Local: Sat, Nov 10 2007 2:19 pm
Subject: Re: making Emacs 22 startup like Emacs 21
Sven Joachim wrote:
> Will Parsons <oud...@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)
>   (setq inhibit-splash-screen t))

Thanks, that works for me.

- Will


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Rodgers  
View profile  
 More options Nov 16 2007, 1:11 pm
Newsgroups: gnu.emacs.help
From: Kevin Rodgers <kevin.d.rodg...@gmail.com>
Date: Fri, 16 Nov 2007 11:11:17 -0700
Local: Fri, Nov 16 2007 1:11 pm
Subject: Re: making Emacs 22 startup like Emacs 21

Sven Joachim wrote:
> Will Parsons <oud...@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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sven Joachim  
View profile  
 More options Nov 16 2007, 1:57 pm
Newsgroups: gnu.emacs.help
From: Sven Joachim <svenj...@gmx.de>
Date: Fri, 16 Nov 2007 19:57:27 +0100
Local: Fri, Nov 16 2007 1:57 pm
Subject: Re: making Emacs 22 startup like Emacs 21

Kevin Rodgers <kevin.d.rodg...@gmail.com> writes:
> Sven Joachim wrote:
>> 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.

True, but those options are already deleted from command-line-args when
the user's init file is processed.

>  A better test might be

>    (> (length (buffer-list) 2)

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

That assumption is mistaken, a freshly started Emacs has six buffers:

(buffer-list)
=> (#<buffer *scratch*> #<buffer  *Minibuf-0*> #<buffer *Messages*>
    #<buffer  *Echo Area 0*> #<buffer  *Echo Area 1*>
    #<buffer  *code-conversion-work*>)

So you'd need to test (> (length (buffer-list) 6).

Regards,
        Sven


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Bockgård  
View profile  
 More options Nov 16 2007, 8:00 pm
Newsgroups: gnu.emacs.help
From: bojohan+n...@dd.chalmers.se (Johan Bockgård)
Date: Sat, 17 Nov 2007 02:00:28 +0100
Local: Fri, Nov 16 2007 8:00 pm
Subject: Re: making Emacs 22 startup like Emacs 21

Sven Joachim <svenj...@gmx.de> writes:
> Kevin Rodgers <kevin.d.rodg...@gmail.com> writes:

>> Sven Joachim wrote:
>>> 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.

> True, but those options are already deleted from command-line-args when
> the user's init file is processed.

Some options are deleted, some are not. (It's reasonable to have any
arguments disable the splash screen though.)

>>  A better test might be

>>        (> (length (buffer-list) 2)

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

> That assumption is mistaken, a freshly started Emacs has six buffers:

> (buffer-list)
> => (#<buffer *scratch*> #<buffer  *Minibuf-0*> #<buffer *Messages*>
>     #<buffer  *Echo Area 0*> #<buffer  *Echo Area 1*>
>     #<buffer  *code-conversion-work*>)

> So you'd need to test (> (length (buffer-list) 6).

Better test whether there are any file visiting buffers

    (delq nil (mapcar 'buffer-file-name (buffer-list)))

--
Johan Bockgård


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Rodgers  
View profile  
 More options Nov 22 2007, 2:14 am
Newsgroups: gnu.emacs.help
From: Kevin Rodgers <kevin.d.rodg...@gmail.com>
Date: Thu, 22 Nov 2007 00:14:29 -0700
Local: Thurs, Nov 22 2007 2:14 am
Subject: Re: making Emacs 22 startup like Emacs 21

Johan Bockgård wrote:
> Better test whether there are any file visiting buffers

>     (delq nil (mapcar 'buffer-file-name (buffer-list)))

Indeed, I was looking at an old version of my ~/.emacs.  Here's
what I have now:

        (catch 'inhibit-splash-screen
          (dolist (buffer (buffer-list) nil)
            (when (buffer-file-name buffer)
              (throw 'inhibit-splash-screen t))))

--
Kevin Rodgers
Denver, Colorado, USA


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Brodbeck  
View profile  
 More options Nov 26 2007, 1:22 pm
Newsgroups: gnu.emacs.help
From: David Brodbeck <bro...@u.washington.edu>
Date: Mon, 26 Nov 2007 10:22:10 -0800
Local: Mon, Nov 26 2007 1:22 pm
Subject: Re: making Emacs 22 startup like Emacs 21

On Nov 21, 2007, at 11:14 PM, Kevin Rodgers wrote:

> Johan Bockgård wrote:
>> Better test whether there are any file visiting buffers
>>     (delq nil (mapcar 'buffer-file-name (buffer-list)))

> Indeed, I was looking at an old version of my ~/.emacs.  Here's
> what I have now:

>    (catch 'inhibit-splash-screen
>      (dolist (buffer (buffer-list) nil)
>        (when (buffer-file-name buffer)
>          (throw 'inhibit-splash-screen t))))

Hmm, when I paste this into my .emacs I still get the splash screen,  
even if I supply a filename on the command line.  I must be doing  
something wrong.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Kastrup  
View profile  
 More options Nov 26 2007, 1:34 pm
Newsgroups: gnu.emacs.help
From: David Kastrup <d...@gnu.org>
Date: Mon, 26 Nov 2007 19:34:29 +0100
Local: Mon, Nov 26 2007 1:34 pm
Subject: Re: making Emacs 22 startup like Emacs 21

The above sequence only replaces the single line quoted above from the
previous recipe.  The other parts of the recipe must stay around as
well.

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »