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

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

Re: $EMACS, used to be set to "t", now it's set to the path of the emacs


From: Eric Lilja
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
User-agent: G2/1.0

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



reply via email to

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