help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to start shell and rename the buffer


From: Decebal
Subject: Re: How to start shell and rename the buffer
Date: Thu, 15 Jan 2009 05:49:44 -0800 (PST)
User-agent: G2/1.0

On 15 jan, 13:43, Decebal <address@hidden> wrote:
> I sometimes want to start emacs with a shell, but I also want to
> rename the default name '*shell*'.
> I have:
>     emacs -title ${TITLE} --eval '(shell) (rename-buffer "shell")'
>
> But the buffername is not renamed.
> In *Messages* I see:
>     (emacs --eval (shell) (rename-buffer "shell"))
>
> And not an error or a warning.
> If I do 'M-:' and then '(rename-buffer "shell")' the buffer is
> renamed.
>
> What am I doing wrong?

I found a way:
     emacs -title ${TITLE} --eval '(shell "shell")'

The only problem with this is that both the '*scratch*' and the
'shell' buffer are displayed. Not a big problem, but is it possible to
have only the 'shell' buffer displayed?

I found a way around my problem, but I am still interested why the
first way does not work. ;-}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]