From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jadamson@partners.org (Joel J. Adamson) Newsgroups: gmane.emacs.help Subject: Re: weird emacs shell behavior Date: Fri, 17 Aug 2007 15:40:59 -0400 Organization: Harvard University Message-ID: <87mywqgd9w.fsf@W0053328.mgh.harvard.edu> References: <87d4xmhxlr.fsf@W0053328.mgh.harvard.edu> <3esl6i10s5.fsf@freenet.de> <87zm0qggqa.fsf@W0053328.mgh.harvard.edu> <9bfy2i0zws.fsf@freenet.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187383246 12973 80.91.229.12 (17 Aug 2007 20:40:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2007 20:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 17 22:40:38 2007 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 1IM8cX-0006II-E3 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 22:40:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IM8cW-0000Ft-TZ for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 16:40:36 -0400 Original-Lines: 34 Original-NNTP-Posting-Host: w0053328.mgh.harvard.edu Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.nuthinbutnews.com!prop4-west.newsfeeds.com!news-in1.spamkiller.net!news.purdue.edu!purdue!news.harvard.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-X-Trace: plato.harvard.edu 1187379712 24452 132.183.29.121 (17 Aug 2007 19:41:52 GMT) Original-X-Complaints-To: news@plato.harvard.edu Original-NNTP-Posting-Date: Fri, 17 Aug 2007 19:41:52 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:tMxMcu2p5RBf3IDmunLwl79tkco= X-Original-Bytes: 2272 Original-Xref: shelby.stanford.edu gnu.emacs.help:151088 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:46663 Archived-At: Emilio Lopes writes: > Joel J Adamson writes: > >> What's the difference between shell-mode and a terminal emulator? > In the terminal emulator you can run *any* terminal program, be it a > shell, a mailer or even VI (forgive the heresy!). How the keybindings > behave is dictated by the program running in the terminal. > > If you want to run a terminal program like "trn", "less" or "lynx" you > have no option but `ansi-term'. For running a command interpreter > `shell-mode' offers you the best of both worlds: you can run your shell > *and* have all Emacs text manipulation facilities at your disposal. > > Note that in shell-mode the command line editing provided by the your > shell (e.g. "readline") is not available; "shell-mode" provides it's > own command line editing facilities. Those are my two reasons for preferring ansi-term. I sometimes run lynx in ansi-term. When i'm using a terminal, I make extensive use of command-line editing, so I didnt' like having the Emacs inter-line commands work in the buffer instead of on the command line (ironic though that is). Joel -- Joel J. Adamson Biostatistician Pediatric Psychopharmacology Research Unit Massachusetts General Hospital Boston, MA 02114 (617) 643-1432 (303) 880-3109