From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric Lilja" Newsgroups: gmane.emacs.help Subject: Re: $EMACS, used to be set to "t", now it's set to the path of the emacs binary? Date: 26 Nov 2006 04:59:07 -0800 Organization: http://groups.google.com Message-ID: <1164545947.433410.204590@l39g2000cwd.googlegroups.com> References: <1164539157.973085.297010@j44g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1164548466 24828 80.91.229.2 (26 Nov 2006 13:41:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2006 13:41:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 26 14:41:04 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GoKFb-0000eM-U0 for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Nov 2006 14:40:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoKFb-0007Ez-22 for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Nov 2006 08:40:55 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.aset.psu.edu!news.glorb.com!postnews.google.com!l39g2000cwd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 85.194.49.108 Original-X-Trace: posting.google.com 1164545953 13290 127.0.0.1 (26 Nov 2006 12:59:13 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 26 Nov 2006 12:59:13 +0000 (UTC) In-Reply-To: <1164539157.973085.297010@j44g2000cwa.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: l39g2000cwd.googlegroups.com; posting-host=85.194.49.108; posting-account=VhnPwg0AAAB7O5OQRS5Hs376X47qoQdE Original-Xref: shelby.stanford.edu gnu.emacs.help:143398 Original-To: help-gnu-emacs@gnu.org 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:39015 Archived-At: Eric Lilja skrev: > Hi, I used to have this section in my .bashrc-file: > if [ "$EMACS" == "t" ] > then > PS1='\n\[\033[32m\]\u@\h \[\033[33m\w\033[0m\]\n$ ' > fi > > in order to get a good looking prompt in shell mode under cygwin > (otherwise it would contain ugly control chars). Now I noticed it > doesn't work anymore and it seems that $EMACS no longer contains t (for > true I guess), but instead it contains the path of the emacs binary > used to start this invocation of emacs. When was this changed? I see the change in the NEWS file now. Must have happened some time after mid-september 2006. > I changed my .bashrc to if [ "$EMACS" != "" ] and that seems to work. > Is there a better way? Anyway, this check seems to work just fine. > > / E / E