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: Sat, 17 Jun 2006 10:18:46 +0200 Message-ID: <5702005D-9396-4DD9-8156-1777A0C29AB1@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=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1150533201 28906 80.91.229.2 (17 Jun 2006 08:33:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2006 08:33:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 17 10:33:19 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 1FrWF3-0003bd-BC for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Jun 2006 10:33:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FrWF2-0007uQ-QK for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Jun 2006 04:33:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FrWEs-0007uL-9w for help-gnu-emacs@gnu.org; Sat, 17 Jun 2006 04:33:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FrWEr-0007u9-8A for help-gnu-emacs@gnu.org; Sat, 17 Jun 2006 04:33:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FrWEr-0007u6-4d for help-gnu-emacs@gnu.org; Sat, 17 Jun 2006 04:33:05 -0400 Original-Received: from [217.72.192.221] (helo=fmmailgate01.web.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FrWOf-0006k2-3Y for help-gnu-emacs@gnu.org; Sat, 17 Jun 2006 04:43:13 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id 3671D26B77F; Sat, 17 Jun 2006 10:18:49 +0200 (CEST) Original-Received: from [87.193.30.215] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.107 #114) id 1FrW12-0001I1-00; Sat, 17 Jun 2006 10:18:49 +0200 In-Reply-To: <1150468947.138065.135840@f6g2000cwb.googlegroups.com> X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: RjjdBae 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:35520 Archived-At: Am 16.06.2006 um 16:42 schrieb RjjdBae: > I use "more" in the shell window because I use the shell window, and I > want to pause output conveniently. Learn to use isearch! In Emacs you can scroll up and down, what not every terminal emulation allows. It's inappropriate using more in an Emacs shell. > > 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; 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. There is some way to bind the backspace key to the delete-backward- char function. I do not know by heart how to. How is it when your shell scripts exit a particular positive non-zero numerical value? The shell script's interpreter usually returns a return value of 0 when during execution nothing failed ... > > The only problems I have with shell is this column 80 thing, > current-directory's getting lost, and having to execute "dirs" upon > changing directory from within a script. I am using the simple shell in GNU Emacs since decades, because it's sufficient for almost all purposes. Its TERM value is dumb and I do not have an 80 columns problem, at least I do not use silly utilities that can make me aware of such a "restriction." Set up your environment correctly! Think of .emacs_! 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 ... It might be useful to use the info function and read a bit about shell, term, and eshell. -- Greetings Pete _o o o o _<< \\_/\_, \\_ \\_/\_, (*)/(*) (*) (*) (*) `- (*)