From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Livin Stephen Sharma" Newsgroups: gmane.emacs.help Subject: Re: What I'm missing when using M-x shell Date: Sat, 13 Sep 2008 16:51:28 +0530 Message-ID: <53e1b0060809130421l6c303650m71231f9db437e1ca@mail.gmail.com> References: <64cc3cde-69bb-4afc-b874-2ee37c302976@i20g2000prf.googlegroups.com> <38b2ab8a0809130200r31712e8ejddc81fd2a89144d9@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22009_28565784.1221304888277" X-Trace: ger.gmane.org 1221305668 20890 80.91.229.12 (13 Sep 2008 11:34:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2008 11:34:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 13 13:35:24 2008 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 1KeTPP-0002RX-Q2 for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2008 13:35:24 +0200 Original-Received: from localhost ([127.0.0.1]:50556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeTOP-0003kC-Gn for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2008 07:34:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KeTC1-0000DT-Ju for help-gnu-emacs@gnu.org; Sat, 13 Sep 2008 07:21:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KeTBz-0000Cv-Tp for help-gnu-emacs@gnu.org; Sat, 13 Sep 2008 07:21:32 -0400 Original-Received: from [199.232.76.173] (port=38980 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeTBy-0000CY-JT for help-gnu-emacs@gnu.org; Sat, 13 Sep 2008 07:21:31 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.248]:15500) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KeTBx-000413-Ve for help-gnu-emacs@gnu.org; Sat, 13 Sep 2008 07:21:30 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so1376084rvb.6 for ; Sat, 13 Sep 2008 04:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=K+Mi/zW4BcXGkwMki5camz3sWJTfHzfAdaOgCYvSCFE=; b=DSyHuB511mbq9a6rMk3UrHriTKzN76EdpYv3UPkDQpPFgN+Tw6haTuEIa4CuNzEl1W 9On6yUMlP3skJl5oLdqngdlPePTU6AAK4LDZpHKN8WPGVU+JHFHRvmM8u5KFUoKIutdE XhVzcJNm1JEc1Ck4nqCpHpHiuMTNFa7KnPlxk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=sZMkXxgKk3k3yInnfTRpXgL5CB5KFDqyL6OtFbuFv8QMqyrRWg01cWccDAZ9JSJ1vO 6xNG1X1RRVJOxmh6xkI3GBSZ99wlg+ftVH0USD1pQF8mdu948xOaRsM7Z9v5dcX+t6U2 9UFIqi/J7zmXZbal902LdRUXZb87sp1YsBVy0= Original-Received: by 10.141.164.13 with SMTP id r13mr3288681rvo.150.1221304888277; Sat, 13 Sep 2008 04:21:28 -0700 (PDT) Original-Received: by 10.140.161.8 with HTTP; Sat, 13 Sep 2008 04:21:28 -0700 (PDT) In-Reply-To: <38b2ab8a0809130200r31712e8ejddc81fd2a89144d9@mail.gmail.com> X-detected-kernel: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:57523 Archived-At: ------=_Part_22009_28565784.1221304888277 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/9/13 Francis Moreau > Hello, > > On Sat, Sep 13, 2008 at 10:08 AM, Livin Stephen > wrote: > > > > YMMV, but I had to "export TERM=xterm"... > > hmm I'm probably missing something here but why exporting TERM=xterm > would change anything since it is already if you're using a window > manager. > > > - i.e. to be usable for everyday use... > > ah ok you're using a Mac, so that explains probably why you need to export > TERM Actually, without exporting TERM, I saw emacs' term to show it to be "eterm-color": the need to export it was to get it to be "xterm" instead. > > > (previous value in... > > > yes and that should be again the case. Let see: > > $ TERM=xterm emacs > < M-x term> > $ echo $TERM > eterm-color > > I don't understand how you did that. I set TERM=xterm ***in my /home//.bashrc*** (**not** on the command-line prior to invoking emacs). My only guess is that When "M-x term" starts up a shell (/bin/bash for me) it would 'load' the .bashrc file from my home directory. Maybe that way you'd wouldn't get "eterm-color" within M-x term. Worth a shot ? > > > After this change my man-pages, etc don't look like their full of odd > > characters (especiallly when trying to print single-quotes), nor is > > man-page text underlined randomly . > > did you try to start mutt for example ? No, I don't use mutt, so I can't comment on that :) . > > > This TERM change definitely took care of at least issues 3/, and 5/ > > which you mention > > - I have both "C-r" history-search and "TAB"-completion of shell-vars > > AND file-names working. > > I don't think so, I'm talking about expansion, not completion for issue 5) Yes, I misunderstood that. -- LSS > > Thanks > -- > Francis > ------=_Part_22009_28565784.1221304888277 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline


2008/9/13 Francis Moreau <francis.moro@gmail.com>
Hello,

On Sat, Sep 13, 2008 at 10:08 AM, Livin Stephen <livin.stephen@gmail.com> wrote:
>
> YMMV, but I had to "export TERM=xterm"...

hmm I'm probably missing something here but why exporting TERM=xterm
would change anything since it is already if you're using a window
manager.

> - i.e. to be usable for everyday use...

ah ok you're using a Mac, so that explains probably why you need to export TERM

Actually, without exporting TERM, I saw emacs' term to show it to be "eterm-color":
 the need to export it was to get it to be "xterm" instead. 



>  (previous value in...
 


yes and that should be again the case. Let see:

 $ TERM=xterm emacs
 < M-x term>
 $ echo $TERM
 eterm-color

I don't understand how you did that.


I set TERM=xterm ***in my /home/<user>/.bashrc***
 (**not** on the command-line prior to invoking emacs).

 My only guess is that When "M-x term" starts up a shell (/bin/bash for me) it would 'load' the .bashrc file from my home directory. Maybe that way you'd wouldn't get "eterm-color" within M-x term. Worth a shot ?




> After this change my man-pages, etc don't look like their full of odd
> characters (especiallly when trying to print single-quotes), nor is
> man-page text underlined randomly .

did you try to start mutt for example ?

No, I don't use mutt, so I can't comment on that :) . 



> This TERM change definitely took care of at least issues 3/, and 5/
> which you mention
>  - I have both "C-r" history-search and "TAB"-completion of shell-vars
> AND file-names working.

I don't think so, I'm talking about expansion, not completion for issue 5)


Yes, I misunderstood that.

-- LSS




Thanks
--
Francis

------=_Part_22009_28565784.1221304888277--