From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Samuel Wales" Newsgroups: gmane.emacs.help Subject: editing output in shell mode Date: Fri, 9 Jan 2009 14:12:16 -0700 Message-ID: <20524da70901091312y4b016693p15be5e93eec3f4f9@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231535576 8937 80.91.229.12 (9 Jan 2009 21:12:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2009 21:12:56 +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 Jan 09 22:14:06 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 1LLOfz-0008Fg-6Q for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jan 2009 22:13:55 +0100 Original-Received: from localhost ([127.0.0.1]:54677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLOei-0002Ut-Tq for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jan 2009 16:12:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LLOeQ-0002Ug-7b for help-gnu-emacs@gnu.org; Fri, 09 Jan 2009 16:12:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LLOeP-0002US-TB for help-gnu-emacs@gnu.org; Fri, 09 Jan 2009 16:12:17 -0500 Original-Received: from [199.232.76.173] (port=39118 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLOeP-0002UP-Pa for help-gnu-emacs@gnu.org; Fri, 09 Jan 2009 16:12:17 -0500 Original-Received: from ey-out-1920.google.com ([74.125.78.150]:16639) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LLOeP-0006kp-JH for help-gnu-emacs@gnu.org; Fri, 09 Jan 2009 16:12:17 -0500 Original-Received: by ey-out-1920.google.com with SMTP id 4so1136784eyg.24 for ; Fri, 09 Jan 2009 13:12:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=kw/N21hHnIOJdVcX1Nj8WW/NrdA7GH6ylrTdKKIjU1M=; b=u9YeoHPwH1NmiSuWTjX2CGIcqZHuMucMkk3fcGFhzs4O5KGpVzlOI/9wRMkCSI68VV Z1dS7538Fcc6F59mxr8SWGDYN6fSlgvP4cNA1V3nPH/7xVg2emDurz5KVozAHwtIZV+S vA8SnEPssUvEUqHaN96KyNsLrob0uqAtby7ys= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=vMZNc7GopamWAYFr4ZeCWr+1HFeTCk9VtOV2TMwKRLRLzQx8nDoZ3OYdh/8aaW+Fet 7wv7xhRWmQmUyxwkl3FC/3QYn3FBgjv+8L9vtVJEQQ/zqS7mps+BmBAszBcuO54xKFts iOy/Y7Wyq3igqAQ3DjSbgyDocOBG7+ucNEpS8= Original-Received: by 10.210.120.7 with SMTP id s7mr30716916ebc.184.1231535536349; Fri, 09 Jan 2009 13:12:16 -0800 (PST) Original-Received: by 10.210.53.2 with HTTP; Fri, 9 Jan 2009 13:12:16 -0800 (PST) Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:61221 Archived-At: Let's say you do something in shell mode that produces a lot of output. Normally, you'd use less(1), but that is not possible in shell mode. Ideally, you'd view the output in an emacs buffer, perhaps in text mode, so that you can edit it and navigate it. Is there a way to pipe this output to, say, emacsclient? Or -- more sophisticatedly -- is there another solution that uses shell mode, e.g. to grab the output once it detects that it is a lot of output, and redirect it into a text mode buffer? Obviously if it's an infinite amount of output, it should do what less does and not use up all memory. Google was not my friend. :) Thanks. -- For personal gain, myalgic encephalomyelitis denialists are knowingly causing further suffering and death by grossly corrupting science. Do you care about the world? http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm