From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: "more", "ls -l", and column 80 in shell Date: Sun, 25 Jun 2006 00:24:36 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: <1150411474.595005.130180@p79g2000cwp.googlegroups.com> <1150468947.138065.135840@f6g2000cwb.googlegroups.com> <87slm4p8sx.fsf@tiger.rapttech.com.au> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1151196041 8552 80.91.229.2 (25 Jun 2006 00:40:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Jun 2006 00:40:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 25 02:40:39 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 1FuIfw-0003Ei-Gj for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jun 2006 02:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FuIfw-0007va-3S for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Jun 2006 20:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!logbridge.uoregon.edu!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 60 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader2.panix.com 1151195076 29977 166.84.1.1 (25 Jun 2006 00:24:36 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sun, 25 Jun 2006 00:24:36 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: shelby.stanford.edu gnu.emacs.help:140014 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:35638 Archived-At: In article <87slm4p8sx.fsf@tiger.rapttech.com.au>, Tim X wrote: >... >Some basic rules of thumb and advice which I hope will help > >1. Don't try to use emacs as if it was equivalent to one of the > standard shells like bash, tcsh or (gasp) csh. While emacs provides M-x shell (then, in *shell*): tcsh Works *absolutely* fine -- ie the same as in a dtterm (no emacs). (of course, no "more", etc, but grep, find, etc all work exactly as expected. Likewise pushd, popd, dirs, etc. (Although from time to time it gets confused, at which point you simply do M-x dirs ) > various ways of doing interaction at this level, you are much > better off using equivalent emacs features when possible i.e. > dired, of course (plus with dired-x, too). M-x locate, M-x grep, M-x cd etc. Huh? About M-x grep, I find it very useful to use normal grep/egrep/etc, *with -n*, and on *at least 2 files* (eg if just one to be grepped, then append /dev/null to get to the 2-or-more-files -- so as to get file-names at the left of the grep-output) and then, if desired, hack that file to remove lines, add marks to certain lines, etc, and THEN do M-x grep, and change the offered args to "`cat mygrep.out`" > >2. When using one of emacs' shell interfaces, keep in mind that it is > often necessary to have some escape key sequence to either access > shell commands that conflict with normal emacs interpreted commands I don't understand, so: Please expain, ie show examples where necessary. > or you need to use an escape sequence within the shell buffer to HUH? Explain? > access emacs commands. Also, note that some shell interfaces, like > M-x term have different operating modes - a line mode and a > terminal mode. > Thanks! David