From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: Re: How to start shell and rename the buffer Date: Thu, 15 Jan 2009 06:37:22 -0800 (PST) Organization: http://groups.google.com Message-ID: <0bbe9e14-f911-4ef0-895a-e92136896b91@p2g2000prn.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232030611 22011 80.91.229.12 (15 Jan 2009 14:43:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2009 14:43:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 15 15:44:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LNTSQ-0001w4-Ph for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2009 15:44:31 +0100 Original-Received: from localhost ([127.0.0.1]:36424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNTRA-0001ev-58 for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2009 09:43:12 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p2g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 85.158.139.99 Original-X-Trace: posting.google.com 1232030242 15020 127.0.0.1 (15 Jan 2009 14:37:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 15 Jan 2009 14:37:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p2g2000prn.googlegroups.com; posting-host=85.158.139.99; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 proxy-25:8080 (squid/2.5.STABLE8), 1.0 netcache-3 (NetCache NetApp/6.0.5), 1.0 netcache-3 (NetCache NetApp/6.0.5), 1.1 cache-1:80 Original-Xref: news.stanford.edu gnu.emacs.help:166029 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61356 Archived-At: On 15 jan, 15:23, tyler wrote: > > I sometimes want to start emacs with a shell, but I also want to > > rename the default name '*shell*'. > > I have: > > =A0 =A0 emacs -title ${TITLE} --eval '(shell) (rename-buffer "shell")' > > > But the buffername is not renamed. > > In *Messages* I see: > > =A0 =A0 (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"))' Works for me also. Thanks. > I guess the --eval flag runs only the first complete command, requiring > the (progn ...) to do both. Just guessing, though. Souns logical. When I want to do more as one command, I'll use progn.