From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: page-at-a-time output for M-x shell Date: Mon, 13 Jul 2009 12:51:20 +0300 Organization: A noiseless patient Spider Message-ID: <87r5wk3o87.fsf@iki.fi> References: <30a09a22-cd05-44b6-9b82-8a7e6c1796d5@x3g2000yqa.googlegroups.com> <7bf1883b-3184-487c-a5a4-675f3e117342@l2g2000vba.googlegroups.com> <85269090-af0d-43fa-bd49-da265cbac558@p23g2000vbl.googlegroups.com> <87fxd1iy86.fsf@iki.fi> <6a088d78-bfa1-46aa-bf87-6efe4d875739@n30g2000vba.googlegroups.com> <874oth3se0.fsf@iki.fi> <76036640-c499-482c-81c0-9e0cb325e96a@k26g2000vbp.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1247481708 6011 80.91.229.12 (13 Jul 2009 10:41:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2009 10:41:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 13 12:41:41 2009 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 1MQIyZ-0005c5-SK for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2009 12:41:40 +0200 Original-Received: from localhost ([127.0.0.1]:37418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQIyY-0007tN-PE for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2009 06:41:38 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-X-Trace: news.eternal-september.org U2FsdGVkX18A9/CF001dgjUUaTmeKmnHwPqI2IrmuMw2kCZVubU8EEj4Y6VHnQES1VE5bFpJkUT3vPJNI65idPt4bQuUjry7R2RCmdzSbwYl6NWiM/h+U1Cki6v/Aaf7v0WCBl4xZ6Hr8ZyCPYQAiOt17g+07imV Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Mon, 13 Jul 2009 09:56:43 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19ScnYVEOf3aNwntuX6WSVs4HuWpAEjtrr5SqPAAhxH4A== Cancel-Lock: sha1:fUgO4Z90DTcf0IsnyLLLjBsHHL8= sha1:vqRRCDBpQ4M0W1mNRVVeFk1ZAqo= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:170819 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:66017 Archived-At: On 2009-07-13 02:16 (-0700), Francis Moreau wrote: > On Jul 13, 10:21 am, Teemu Likonen wrote: >> >> OK, then it's probably me who fails to understand why do you keep >> talking about "M-x shell" when you need a terminal. This >> "page-at-a-time" feature comes with terminal emulation. There's no >> need to make "M-x shell" a real terminal because there already is >> one: "M-x term". > > Ok then it's probably me who fails to understand the point of "M-x > shell"... The documentation says "Major mode for interacting with an inferior shell" (C-h f shell-mode). It's like repeated M-! but more convenient. > If "M-x shell" implements this 'page-at-a-time' feature, does that > mean it becomes a real term emulation ? To make "less" work it needs some terminal features so it would heading towards that direction, that is, towards term-mode which already exists. Perhaps someone could write some custom pager system in shell-mode but it still wouldn't make "less" work. > Is it really that much hard to make "M-x shell" mimics the one page at > a time ? You can write to emacs-devel mailing list and ask. I don't know. >> Is there something wrong with "M-x term"? > > Not really, but I found it not very well suited to be used inside > Emacs: the key bindings are not very friendly with the rest of Emacs > and sometimes the output is screwed, I dunno why. So it's not very > integrated to Emacs, and I just prefer start another term outside > emacs if I want a real term emulation. If you can present the problems in a clear way you could report them as bugs, with "M-x report-emacs-bug" command. I don't use term-mode (nor shell-mode for that matter) much but I have successfully tested Mutt email client, Vim and Emacs itself inside term-mode, with no problems. What comes to key bindings I have changed the escape char to C-x: (add-hook 'term-mode-hook 'my-term-mode-hook) (defun my-term-mode-hook () (term-set-escape-char ?\C-x))