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: tyler
Subject: Re: How to start shell and rename the buffer
Date: Thu, 15 Jan 2009 10:23:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Decebal <address@hidden> writes:

> 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?
>

This works for me:

emacs -title mytitle --eval '(progn (shell) (rename-buffer "myshell"))'

I guess the --eval flag runs only the first complete command, requiring
the (progn ...) to do both. Just guessing, though.

Tyler

-- 
Tired of spyware? Try Firefox:

www.firefox.com





reply via email to

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