From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#62958: [PATCH] Set PAGER=cat in comint.el Date: Fri, 12 May 2023 22:21:19 +0000 Message-ID: <78c44aa5150bbe81d8e9@heytings.org> References: <83edof6oln.fsf@gnu.org> <83zg724kea.fsf@gnu.org> <835y97jnfd.fsf@gnu.org> <83pm7aay70.fsf@gnu.org> <874jol1rml.fsf@catern.com> <86y1lw4mjr.fsf@mail.linkov.net> <030b4f83a575bd1be4e5@heytings.org> <86fs81l9ta.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36572"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@catern.com, Eli Zaretskii , 62958@debbugs.gnu.org, Spencer Baugh To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 13 00:22:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pxb9Z-0009K3-HK for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 May 2023 00:22:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxb9I-0003HQ-0l; Fri, 12 May 2023 18:22:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxb9G-0003GV-5v for bug-gnu-emacs@gnu.org; Fri, 12 May 2023 18:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxb9F-0004R3-So for bug-gnu-emacs@gnu.org; Fri, 12 May 2023 18:22:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pxb9F-0001Ng-Nd for bug-gnu-emacs@gnu.org; Fri, 12 May 2023 18:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 May 2023 22:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62958 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 62958-submit@debbugs.gnu.org id=B62958.16839300815261 (code B ref 62958); Fri, 12 May 2023 22:22:01 +0000 Original-Received: (at 62958) by debbugs.gnu.org; 12 May 2023 22:21:21 +0000 Original-Received: from localhost ([127.0.0.1]:33899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxb8b-0001Mn-5T for submit@debbugs.gnu.org; Fri, 12 May 2023 18:21:21 -0400 Original-Received: from heytings.org ([95.142.160.155]:59276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxb8a-0001Mc-4Q for 62958@debbugs.gnu.org; Fri, 12 May 2023 18:21:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1683930079; bh=pkbrEvJZNWu+qhbvGdkYuuOpurPVclnWRzpSKWW5aVA=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=4nmD9mUCB8YHn8uLX5s7YQry2QZppMU0OrDZUOkum9KRWC9POArabnau2dolkCvbr TuMN4PSR8/Bzi4LVvpyWmXNjdlMBTX2/MYMZCt2IXDVrvXYPCml+S0hL31ZvZpF8L0 E7qNjWnp5N5gVPQlcQp1EfV5LCfxgyJXMn2f/7pSQweZtXHkwFCF3bAqBvyzZt5auA luGdbNB2afcdnJLFumKIzpfS3Ty7Tc7cXvAppt4VoM8unPU9IMyT/wZXj07fcrduga AUxOllo9DTEk93A/wq+yiYt4ege28PJxYL6tMbrQ4mQ1+IiRsxLDLrG95mAbcjbGfK 89hUeGfuwyaZQ== In-Reply-To: <86fs81l9ta.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261651 Archived-At: >>> I will definitely customize the new option 'comint-pager' to "cat" as >>> soon as it arrives to master. But for such cases when some commands >>> produce too long output, would it be also possible to provide an >>> additional option to set the number of lines to output before >>> stopping? >> >> Did you try "cat | head -N"? > > Now I tried out, and it works as expected. Only there is no indication > that the output is truncated. But probably such indication is not > important with overly long output. > If you want such an indication, I suggest using sed instead of head: cat | sed -e "aOUTPUT TRUNCATED" -e "q" (Of course, replace with the number of lines of output you want. And of course you can replace the string "OUTPUT TRUNCATED" with whatever you want.)