From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: "more", "ls -l", and column 80 in shell Date: Sun, 25 Jun 2006 10:35:42 +0200 Message-ID: <5867605E-E942-4AFA-8FB9-CC0BAF9F41D0@Web.DE> References: <1150411474.595005.130180@p79g2000cwp.googlegroups.com> <1150468947.138065.135840@f6g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1151224598 2680 80.91.229.2 (25 Jun 2006 08:36:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Jun 2006 08:36:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 25 10:36:36 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 1FuQ6c-0002bp-0y for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jun 2006 10:36:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FuQ6b-0005Sm-7L for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jun 2006 04:36:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FuQ6K-0005S2-5x for help-gnu-emacs@gnu.org; Sun, 25 Jun 2006 04:36:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FuQ6I-0005Qh-Es for help-gnu-emacs@gnu.org; Sun, 25 Jun 2006 04:36:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FuQ6I-0005Qd-AJ for help-gnu-emacs@gnu.org; Sun, 25 Jun 2006 04:36:14 -0400 Original-Received: from [217.72.192.221] (helo=fmmailgate01.web.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FuQHt-0002NS-Td for help-gnu-emacs@gnu.org; Sun, 25 Jun 2006 04:48:14 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id 37E7C41AD8D; Sun, 25 Jun 2006 10:35:44 +0200 (CEST) Original-Received: from [87.193.30.37] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.107 #114) id 1FuQ5n-00016z-00; Sun, 25 Jun 2006 10:35:44 +0200 In-Reply-To: X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: dkcombs@panix.com (David Combs) X-Mailer: Apple Mail (2.750) X-Sender: Peter_Dyballa@web.de 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:35643 Archived-At: Am 25.06.2006 um 02:30 schrieb David Combs: > In article , > Peter Dyballa wrote: >> >>> >>> The first time I heard of eshell and term is today! I tried each: >>> eshell exits when I execute a script that contains an "exit". term >>> doesn't pass ^H to emacs. And eshell didn't get my .cshrc right; =20= >>> some >>> commands didn't work, e.g. "set". >> >> Add some if's to .cshrc! This way your eshell can bypass codes that >> only makes sense in an xterm or such. > > Examples? (eg from your .cshrc?) THANKS if ($?TERM) then if (($TERM =3D=3D xterm) | ($TERM =3D=3D nxterm)) then setenv TERM xterm-color setenv TERMCAP /usr/X11R6/lib/X11/etc/xterm.termcap #### tty > /dev/null #### if ($status =3D=3D 0) stty erase '^?' endif if (! $?DISPLAY) setenv DISPLAY :0.0 set path=3D(~/bin $path) #/usr/local/bin = /usr/local/teTeX/bin/=20 powerpc-apple-darwin-current) set ignore =3D (.o a.out) set prompt =3D "`echo $user` ! /\\ " endif You could also check if $TERM is "emacs" ... If your ls does not =20 colourise its output by default, you could switch that on in such a =20 clause as above. I have to switch this off in ~/.emacs_tcsh because =20 in *shell* buffer I would see a lot of ANSI Esc sequences to switch =20 colour or brightness on or off. >> >> The value of cwd can get lost, I know, this happens to me, too. Do >> you set some cdpath? Do you have directories with non-ASCII >> components in the name? SPACE should work. I think when cwd gets lost >> it has to do with incorrect customisation, but I never tracked this >> down, I either killed the *shell* buffer and created a new one or re- >> launched whole GNU Emacs. With session or desktop the old layout >> buffers are restored ... >> > > How about a simple "M-x dirs" -- seems to re-sync *shell* > to know where it *really* is. Works for me. Whenever this happened M-x dirs did not always cure it. Changing =20 working directory and returning could make GNU Emacs forget about the =20= current working directory. It did not happen this year, and I have to =20= admit that I am working in unstable Emacsen. This might explain my =20 failures. -- Greetings Pete =93One cannot live by television, video games, top ten CDs, and dumb =20 movies alone=94 (Amiri Baraka 1999)