GNU bug report logs - #15775
24.3.50; "WARNING: terminal is not fully functional" in Comint and Eshell

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Dmitry Gutov <dgutov@HIDDEN>; dated Fri, 1 Nov 2013 01:59:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 15775 <at> debbugs.gnu.org:


Received: (at 15775) by debbugs.gnu.org; 5 Jun 2022 14:15:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 05 10:15:21 2022
Received: from localhost ([127.0.0.1]:33146 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nxr2H-0000LI-8N
	for submit <at> debbugs.gnu.org; Sun, 05 Jun 2022 10:15:21 -0400
Received: from quimby.gnus.org ([95.216.78.240]:57296)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>)
 id 1nxr2F-0000EO-Q0; Sun, 05 Jun 2022 10:15:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=ZCIZuIJGGGi7W6/tdoU8g+lOka4sGSMZLydHRTO9rnI=; b=C2X9g7NCaQc6fP57nN/HojAyFS
 i4OCs+5djARD9snPTY5+3o+ch7aMwJoJflev2u6/ZAHqoAwwa/pOLW/uRFRuZDlYKsCwCKR3RLWfD
 nXL8cMudW7Kt3mcBaXDDkywoIYP7ei25Ig00vRHEtF71OyPrW/r+kvwXcMk7jOeslVq0=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nxr23-0001rJ-Py; Sun, 05 Jun 2022 16:15:10 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#15775: 24.3.50; "WARNING: terminal is not fully functional"
 in Comint and Eshell
References: <E1QcQzo-0007pn-KL@HIDDEN>
 <m3tyb6oomk.fsf@HIDDEN> <4E0D7000.7040802@HIDDEN>
 <m3fwmqjolh.fsf@HIDDEN> <yxq62nm9cay.fsf@HIDDEN>
 <m3wrg0x3kg.fsf@HIDDEN> <87czgsqhfa.fsf_-_@HIDDEN>
 <878rqfxlhh.fsf_-_@HIDDEN>
 <01702a44-ba8b-d1cc-7693-bbfee2c3f0aa@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUPDxInHCONbKxO
 KEOiOy3///9uRwijAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YGBAw1FyQTjt0AAAGlSURBVDjLpZNh
 mqMwCIbh6R4AxAOsZA4gkAO0mvufaUk6M9raf8uPqLx8BAkB+G9DZiY6vpl/QaIDYLEkmA40PoOb
 aiG4/e1axFMqdFUCfN9wWmCO+A07FF6wHXJkW79fdaGGcNryJ0QXvCP4+gmswG7v4KaZCFivCg+T
 2q4AoC5Sd71uPredUK4AYvrKDpVrpy0bslzjYX508OFoNkbxxwfQcvnzAcwje7sWuw3XdH/zCzde
 8zznB9tJ5CAzZb8ni7oTUJ8RxhXZgTM55TnDfO/eCBZfOY+TmxsHO0sfD9UOTRaE1vwrYtOwaoxf
 zVjUpoVBS4R6aEQsnL0Jm8oAHl5105yrnsSTh1rk+Eno0zL+Vlt0VckoiAGiuJqI1j3qpsWLQd84
 N8j+lmAte6L82hp0l46lKGW0L2WEgfZUuw8Vieoj/zHzOvQ6m0VUcqMMshyw4iFQIr3ELBRMWRAT
 S+nXKPhpQsYkcUwj/9j7UOPTO4alL3CSjEf22T4oXi7kGfQrzG/kW5ANfSXS0mysO13AHn2NFwkP
 V9Sk9lIA15OCjuL+AZFuUILiwA2mAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTA0VDEyOjUz
 OjIzKzAwOjAwf9+2egAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0wNFQxMjo1MzoyMyswMDow
 MA6CDsYAAAAASUVORK5CYII=
X-Now-Playing: 1CD (2022) - 14 Chances's _Illusion_: "(Illusion Suite #1)"
Date: Sun, 05 Jun 2022 16:15:06 +0200
In-Reply-To: <01702a44-ba8b-d1cc-7693-bbfee2c3f0aa@HIDDEN> (Dmitry Gutov's
 message of "Sat, 4 Jun 2022 20:37:31 +0300")
Message-ID: <87o7z72o45.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Dmitry Gutov <dgutov@HIDDEN> writes: > Back when I filed
 bug#15775, Glenn merged it with bug#4359. > > Looks like you are fixing only
 the latter bug here. Sorry; didn't catch that. I've now unmerged the bug
 reports, and reopened bug#15775. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 15775
Cc: schwab@HIDDEN, Ulrich Neumerkel <ulrich@HIDDEN>,
 Dan Nicolaescu <dann@HIDDEN>, 15775 <at> debbugs.gnu.org,
 Jan =?utf-8?Q?Dj=C3=A4rv?= <jan.h.d@HIDDEN>, 4359 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Dmitry Gutov <dgutov@HIDDEN> writes:

> Back when I filed bug#15775, Glenn merged it with bug#4359.
>
> Looks like you are fixing only the latter bug here.

Sorry; didn't catch that.  I've now unmerged the bug reports, and
reopened bug#15775.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15775; Package emacs. Full text available.
Disconnected #15775 from all other report(s). Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug No longer marked as fixed in versions 29.1 and reopened. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.

Message received at 15775 <at> debbugs.gnu.org:


Received: (at 15775) by debbugs.gnu.org; 4 Jun 2022 17:37:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 04 13:37:42 2022
Received: from localhost ([127.0.0.1]:59616 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nxXiY-0005f3-Nc
	for submit <at> debbugs.gnu.org; Sat, 04 Jun 2022 13:37:42 -0400
Received: from mail-wm1-f46.google.com ([209.85.128.46]:52751)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>)
 id 1nxXiW-0005ek-D4; Sat, 04 Jun 2022 13:37:41 -0400
Received: by mail-wm1-f46.google.com with SMTP id q15so2458830wmj.2;
 Sat, 04 Jun 2022 10:37:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=sender:message-id:date:mime-version:user-agent:subject
 :content-language:to:cc:references:from:in-reply-to
 :content-transfer-encoding;
 bh=FdPnF24Hk6QxYtBOp00xUFgEySbCM/dO4vy2Tfgqz1c=;
 b=fAIw1OnsWHCRA4l6QXlRMxvylJEHURpHC4onxya6KSxYVSQ/Dq+hQj3SXlN1s1EbdI
 eYF7sHxqInW59fBws/WGUM96Oc50e3R3G/aHMsh4cebV0BEZpgPa6etax28cX7a+qE+y
 3pU6NdHFY6Qcwiv9T6Mbr14MIWWTirN30QwCD0IwwKhFQKW1dPFVZZSKsQzZKeGELesO
 8vqXyK+JptxFvzwqVsFAx/fiicsFjkKrB2pbN4AWLDZkvGyjNrvJ0CpXfX0npDODvYCm
 3OvPyXMSrMyn/Wh1ksSd6cN7WF03H35S4pf6/O0APi97WsCx8jeU5zerIhH4+I/mtMJ4
 fzvQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:sender:message-id:date:mime-version:user-agent
 :subject:content-language:to:cc:references:from:in-reply-to
 :content-transfer-encoding;
 bh=FdPnF24Hk6QxYtBOp00xUFgEySbCM/dO4vy2Tfgqz1c=;
 b=y/E012cO49chWclPX0GraV3wZR0ZBzVUaMa67JAb/lQDXXXFlEzUEgRoVKJ65AnVxU
 jAzwcLmNaJ5a+etwpG/aFlmuw7zocG1rjhcMwVULzVYcevjh31FVr/gk9gmGzchsm803
 nHJ18BRywEeqeywcaB64VMIOT+QUH7pDnbRe2pZL+6peNe4fO4JYiNM70XStCWGiyinE
 5/ubeMATHhagrcOd9DBFO7amj05Pp+5quXz4ZuL+JXPVWeMShu1KmLyhbMSBjevVVP3H
 S0cmJc0wXud1PXorzqdV9OLLjw2q+mOIU3z7Hjkq2qSI9agHc6tmFNsokYfAANrx/EZB
 /TwQ==
X-Gm-Message-State: AOAM530l5NWOZe9Y2aK1e7A77cnw7oN+Ga+iJvmrD35QeWc+g5bXxZGB
 ZFM84+t4Ai4hWofvSVrI3T4=
X-Google-Smtp-Source: ABdhPJxyaCdZadf/3qRX+azeL1TwltAWmPcfl+mhAo4d9qEHJg2ULFsCtwqvOpDvZSjHUTP+f1aSLg==
X-Received: by 2002:a7b:c5cb:0:b0:397:47ae:188f with SMTP id
 n11-20020a7bc5cb000000b0039747ae188fmr43374919wmk.137.1654364254353; 
 Sat, 04 Jun 2022 10:37:34 -0700 (PDT)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id
 h12-20020a05600c2cac00b0039749256d74sm16919634wmc.2.2022.06.04.10.37.32
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 04 Jun 2022 10:37:33 -0700 (PDT)
Message-ID: <01702a44-ba8b-d1cc-7693-bbfee2c3f0aa@HIDDEN>
Date: Sat, 4 Jun 2022 20:37:31 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.9.1
Subject: Re: bug#15775: 24.3.50; "WARNING: terminal is not fully functional"
 in Comint and Eshell
Content-Language: en-US
To: Lars Ingebrigtsen <larsi@HIDDEN>, Dan Nicolaescu <dann@HIDDEN>
References: <E1QcQzo-0007pn-KL@HIDDEN>
 <m3tyb6oomk.fsf@HIDDEN> <4E0D7000.7040802@HIDDEN>
 <m3fwmqjolh.fsf@HIDDEN> <yxq62nm9cay.fsf@HIDDEN>
 <m3wrg0x3kg.fsf@HIDDEN> <87czgsqhfa.fsf_-_@HIDDEN>
 <878rqfxlhh.fsf_-_@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <878rqfxlhh.fsf_-_@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 15775
Cc: 15775 <at> debbugs.gnu.org, =?UTF-8?Q?Jan_Dj=c3=a4rv?= <jan.h.d@HIDDEN>,
 schwab@HIDDEN, Ulrich Neumerkel <ulrich@HIDDEN>,
 4359 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On 02.06.2022 16:07, Lars Ingebrigtsen wrote:
> Lars Ingebrigtsen<larsi@HIDDEN>  writes:
> 
>> This change makes "git grep" work as a grep command with `M-x grep' (if
>> you remove --null).  It's shouldn't have a negative impact on much
>> anything else (because no pagers should be used anywhere here), but
>> perhaps it should be done in grep.el instead of compile.el...
>>
>> Anybody got any comments?
> [...]
> 
>> +              ;; Some external programs (like "git grep") use a pager;
>> +              ;; defeat that.
>> +              (list "PAGER=")
> Nobody had any comments, and it doesn't seem likely that this will
> regress anything, so I've now pushed this to Emacs 29.

Hi Lars,

Back when I filed bug#15775, Glenn merged it with bug#4359.

Looks like you are fixing only the latter bug here.

The package I mentioned in the original report, inf-ruby, derives from 
comint-mode.

It doesn't derive from compilation-mode, so the pushed change can't 
affect it or fix the problem there.

N.B.: Even a decade later, I still have

   (setenv "PAGER" (executable-find "cat"))

in my init script.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15775; Package emacs. Full text available.
bug marked as fixed in version 29.1, send any further explanations to 15775 <at> debbugs.gnu.org and Dmitry Gutov <dgutov@HIDDEN> Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 15775 <at> debbugs.gnu.org:


Received: (at 15775) by debbugs.gnu.org; 2 Jun 2022 13:07:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 02 09:07:23 2022
Received: from localhost ([127.0.0.1]:53084 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nwkXq-0004ZM-SV
	for submit <at> debbugs.gnu.org; Thu, 02 Jun 2022 09:07:23 -0400
Received: from quimby.gnus.org ([95.216.78.240]:50920)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>)
 id 1nwkXp-0004Yk-G7; Thu, 02 Jun 2022 09:07:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=wd2b4wlFfMf2H03hR5y2aHUsJUisadkxC5waVIDnqJE=; b=YCi1fGiMJaC22mujE23eYq3ZjO
 re4Zt0moN7vk0UGwUhU+iQij1Qf6ANlo6ctbTwx5hPen2tRaVhvLTezD+vod177O9NLJEC+MIMqI4
 cmUaKUacTxFjjG9hgzAkEjmz9Ob8jF/HLsb1snR2BvZJkLYFeAFNDGnGji6TPDwfN4mY=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nwkXb-0007wA-Dm; Thu, 02 Jun 2022 15:07:10 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Dan Nicolaescu <dann@HIDDEN>
Subject: Re: bug#15775: 24.3.50; "WARNING: terminal is not fully functional"
 in Comint and Eshell
References: <E1QcQzo-0007pn-KL@HIDDEN>
 <m3tyb6oomk.fsf@HIDDEN> <4E0D7000.7040802@HIDDEN>
 <m3fwmqjolh.fsf@HIDDEN> <yxq62nm9cay.fsf@HIDDEN>
 <m3wrg0x3kg.fsf@HIDDEN> <87czgsqhfa.fsf_-_@HIDDEN>
Date: Thu, 02 Jun 2022 15:07:06 +0200
In-Reply-To: <87czgsqhfa.fsf_-_@HIDDEN> (Lars Ingebrigtsen's message of
 "Thu, 05 May 2022 14:42:49 +0200")
Message-ID: <878rqfxlhh.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Lars Ingebrigtsen <larsi@HIDDEN> writes: > This change
 makes
 "git grep" work as a grep command with `M-x grep' (if > you remove --null).
 It's shouldn't have a negative impact on much > anything else (because no
 pagers should be used anywhere [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 15775
Cc: 4359 <at> debbugs.gnu.org, 15775 <at> debbugs.gnu.org,
 Jan =?utf-8?Q?Dj=C3=A4rv?= <jan.h.d@HIDDEN>, schwab@HIDDEN,
 Ulrich Neumerkel <ulrich@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> This change makes "git grep" work as a grep command with `M-x grep' (if
> you remove --null).  It's shouldn't have a negative impact on much
> anything else (because no pagers should be used anywhere here), but
> perhaps it should be done in grep.el instead of compile.el...
>
> Anybody got any comments?

[...]

> +              ;; Some external programs (like "git grep") use a pager;
> +              ;; defeat that.
> +              (list "PAGER=")

Nobody had any comments, and it doesn't seem likely that this will
regress anything, so I've now pushed this to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15775; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 15775 <at> debbugs.gnu.org:


Received: (at 15775) by debbugs.gnu.org; 5 May 2022 12:43:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 05 08:43:11 2022
Received: from localhost ([127.0.0.1]:44678 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nmap4-0000t4-S9
	for submit <at> debbugs.gnu.org; Thu, 05 May 2022 08:43:11 -0400
Received: from quimby.gnus.org ([95.216.78.240]:53292)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>)
 id 1nmaow-0000sI-Th; Thu, 05 May 2022 08:43:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=v1OKFyVADpDvM3xlAUPN8bwtiVf2BMe0NlPGscHSaAQ=; b=l83io5/x4xzoBIMR5O+5JT/E+f
 TFQQDrP3NLhMRk3tXEBkoRtE+fSBJ7QHUMEmoRjK4F8xQJQJZNsvCknsJ+he1eMQKxUTrDO+U+c9s
 zAX+VhFbHnOe0De4tvoKL8ex0u5xplj5K8MmkneyO1yQ7nco9eb5N2W6X9nfum67RH4s=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nmaoj-0001qs-Kj; Thu, 05 May 2022 14:42:51 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Dan Nicolaescu <dann@HIDDEN>
Subject: Re: bug#15775: 24.3.50; "WARNING: terminal is not fully functional"
 in Comint and Eshell
References: <E1QcQzo-0007pn-KL@HIDDEN>
 <m3tyb6oomk.fsf@HIDDEN> <4E0D7000.7040802@HIDDEN>
 <m3fwmqjolh.fsf@HIDDEN> <yxq62nm9cay.fsf@HIDDEN>
 <m3wrg0x3kg.fsf@HIDDEN>
X-Now-Playing: Kiko Dinucci's _Rastilho_: =?utf-8?Q?=22Olod=C3=A9=22?=
Date: Thu, 05 May 2022 14:42:49 +0200
In-Reply-To: <m3wrg0x3kg.fsf@HIDDEN> (Lars Magne Ingebrigtsen's
 message of "Sat, 02 Jul 2011 14:35:59 +0200")
Message-ID: <87czgsqhfa.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: This change makes "git grep" work as a grep command with `M-x
 grep' (if you remove --null). It's shouldn't have a negative impact on much
 anything else (because no pagers should be used anywhere here) [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 15775
Cc: 15775 <at> debbugs.gnu.org,
 Jan =?utf-8?Q?Dj=C3=A4r?= =?utf-8?Q?v?= <jan.h.d@HIDDEN>,
 schwab@HIDDEN, Ulrich Neumerkel <ulrich@HIDDEN>,
 4359 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

This change makes "git grep" work as a grep command with `M-x grep' (if
you remove --null).  It's shouldn't have a negative impact on much
anything else (because no pagers should be used anywhere here), but
perhaps it should be done in grep.el instead of compile.el...

Anybody got any comments?

diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 6753cf0b02..c88eb10693 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1895,6 +1895,9 @@ compilation-start
               (and (derived-mode-p 'comint-mode)
                    (comint-term-environment))
 	      (list (format "INSIDE_EMACS=%s,compile" emacs-version))
+              ;; Some external programs (like "git grep") use a pager;
+              ;; defeat that.
+              (list "PAGER=")
 	      (copy-sequence process-environment))))
         (setq-local compilation-arguments
                     (list command mode name-function highlight-regexp))


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15775; Package emacs. Full text available.
Disconnected #15771 from all other report(s). Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Forcibly Merged 4359 15771 15775. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 4359 15775. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Nov 2013 01:58:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 31 21:58:43 2013
Received: from localhost ([127.0.0.1]:56010 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Vc40Y-0003ZB-I6
	for submit <at> debbugs.gnu.org; Thu, 31 Oct 2013 21:58:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54634)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <raaahh@HIDDEN>) id 1Vc40W-0003Yt-Ph
 for submit <at> debbugs.gnu.org; Thu, 31 Oct 2013 21:58:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <raaahh@HIDDEN>) id 1Vc40N-0001pU-5a
 for submit <at> debbugs.gnu.org; Thu, 31 Oct 2013 21:58:35 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:53412)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <raaahh@HIDDEN>) id 1Vc40N-0001pK-2n
 for submit <at> debbugs.gnu.org; Thu, 31 Oct 2013 21:58:31 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56342)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <raaahh@HIDDEN>) id 1Vc40I-0006av-S8
 for bug-gnu-emacs@HIDDEN; Thu, 31 Oct 2013 21:58:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <raaahh@HIDDEN>) id 1Vc40E-0001oV-GR
 for bug-gnu-emacs@HIDDEN; Thu, 31 Oct 2013 21:58:26 -0400
Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:62074)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <raaahh@HIDDEN>) id 1Vc40E-0001oR-91
 for bug-gnu-emacs@HIDDEN; Thu, 31 Oct 2013 21:58:22 -0400
Received: by mail-la0-f52.google.com with SMTP id ev20so1204410lab.39
 for <bug-gnu-emacs@HIDDEN>; Thu, 31 Oct 2013 18:58:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:subject:date:message-id:mime-version:content-type;
 bh=HeDizdCVwoobjiNyJDHuTpN+fZ/VODQNT/adPDj4fq4=;
 b=jEhKUg9yzgRtRAO/gVkEyfrxLPi3E/tYJbJMSo0eADEb7FUF7IBoZgNi0Yw/jr5MFB
 oVoyz+O7AdOjC+1VZYd68cVXevj+H22/LrWjqmY0vuWdKTMXwXV10mUqTMH41kDyvtvo
 XRpcQIorTQdL78RzSP4laz0oLn8OqI7qSZ5nsjCZ62VzRQBJlgSNg8Opte1wlvjBkh+q
 RG8gRxeUyFehyiMTbtboRWJDYm5C6GhGhyuwozF3fG5teA8wakaWRCJd5qFwvtFDpYrn
 MidP1zbjMilAQgct98fecQZH6A9pNN5NQl9Pqoo2W8ymZvLDJQg3oSw/xBpi592/Auu2
 fzGQ==
X-Received: by 10.112.53.198 with SMTP id d6mr325881lbp.47.1383271100489;
 Thu, 31 Oct 2013 18:58:20 -0700 (PDT)
Received: from axl ([178.252.98.87])
 by mx.google.com with ESMTPSA id e4sm4690476lba.15.2013.10.31.18.58.19
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
 Thu, 31 Oct 2013 18:58:19 -0700 (PDT)
From: Dmitry Gutov <dgutov@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50;
 "WARNING: terminal is not fully functional" in Comint and Eshell
Date: Fri, 01 Nov 2013 05:58:15 +0400
Message-ID: <87sivgq3wo.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

It has been a somewhat common problem with calling external processes
from Emacs. Some references:

http://david.rothlis.net/emacs/customize_general.html#shell

https://github.com/nonsequitur/inf-ruby/issues/33

https://github.com/dgutov/robe/issues/9

The common recommendation is to change the PAGER environment var, and it
works, but why isn't Emacs doing it by default (like with TERM, for
example)?

Can packages just go ahead and set it, without having to leave it to
users? Should they limit the change only to buffers they work with? I
looked at how that could be done with Comint (and a mode deriving from
it), but `make-comint' creates a new buffer, so it's not like I can
change the local value of `process-environment' before the external
process is launched.


In GNU Emacs 24.3.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4)
 of 2013-10-30 on axl
Bzr revision: 114852 monnier@HIDDEN
Windowing system distributor `The X.Org Foundation', version 11.0.11303000
System Description:	Ubuntu 13.04




Acknowledgement sent to Dmitry Gutov <dgutov@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#15775; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 4 Jul 2022 11:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.