From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.bugs Subject: bug#72426: 29.2.50; comint-pager doesn't affect async-shell-command Date: Tue, 06 Aug 2024 11:33:47 -0400 Message-ID: References: <86sevmupgo.fsf@gnu.org> <86bk29vcof.fsf@gnu.org> <8634nlv82c.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5025"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72426@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 06 17:34:55 2024 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 1sbMD8-0001AQ-Sn for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Aug 2024 17:34:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbMCu-0005Sr-K4; Tue, 06 Aug 2024 11:34:40 -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 1sbMCt-0005Sg-42 for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 11:34:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sbMCr-0006jz-Re for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 11:34:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=7iPkm8GnsAxNV+ZRVIyNbvTAglSA4g5v/4CM+5NTPas=; b=Kgu9epUXjH304kDD+LqfAMmrOPGiJhcKUNIagvjNuRCSbxJVjcGwphaC81XHCPyBEMcmWEUIKbJHkLBtrFQLPz0kugpvphenK6FYUgbivzc4NeW+k8xZDJmod5vhphzIa+hAor1Mdox9SzVwNu92qKX78cUk8w3OwkIyuuiKG+OS+cfVqVPRJaZRFuuKAvwp0Qiwipkzoa7SoaLxnmIjAQ0LccV6hhOipuVVdOTirprLW8MBIHAM0oxGd4XIH0+zrmLDmR3EF7ekY9oHxiLMxAW0804Q+twoTqQX6nKApv9RfdoQ4M/sg6pGMftuhZxWJPjcgWThJHyVs712rI1dPg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbMDF-0001OT-NZ for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 11:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Aug 2024 15:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72426 X-GNU-PR-Package: emacs Original-Received: via spool by 72426-submit@debbugs.gnu.org id=B72426.17229584645266 (code B ref 72426); Tue, 06 Aug 2024 15:35:01 +0000 Original-Received: (at 72426) by debbugs.gnu.org; 6 Aug 2024 15:34:24 +0000 Original-Received: from localhost ([127.0.0.1]:32911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbMCd-0001Ms-Rc for submit@debbugs.gnu.org; Tue, 06 Aug 2024 11:34:24 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]:40857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbMCX-0001MT-04 for 72426@debbugs.gnu.org; Tue, 06 Aug 2024 11:34:22 -0400 In-Reply-To: <8634nlv82c.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Aug 2024 20:18:35 +0300") DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1722958427; bh=7iPkm8GnsAxNV+ZRVIyNbvTAglSA4g5v/4CM+5NTPas=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=fzDQZ9Owc3Zi44r3xc26hekY0Hvt4BDyqZXgWsgkVLFAroODn9e+Di2/1clWbcaKE +p1FfzFcm/3BNI/7Z74P3xyuwO7B0fEjQunGyjc9OLDlhz1BrXyBhVGZ7e0yFdxsxq 7cKTWBsnJDUpxJMtN99TZP+G3Mr6XXbK47rTfgF1/YmpcmGtlHqspXknyVAqFcCRn/ U1RHIZIiusncjYhoorX4ADhHpe8lmZEUptrKlUJiQ7oQiGNIKP34USlVRV92QLxWsb lA0hKamVTalggOQhIerDHIm6T97a8YkRupauFrWib4/Lvs25rkuXSt0WX0ro7ZeY48 gc+lwEXqGvW5g== 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:289834 Archived-At: Eli Zaretskii writes: >> From: Spencer Baugh >> Date: Sat, 3 Aug 2024 12:42:00 -0400 >> Cc: 72426@debbugs.gnu.org >> >> > comint-terminfo-terminal affects async-shell-command, why not this? >> >> Ugh! A mistake, IMNSHO. But that ship sailed a long time ago, so we >> cannot fix the mistake. We can avoid enlarging the mistake, though. >> >> > If the fact that the variable is in comint is the problem, I can rename it and move it elsewhere. >> >> I don't think functions that are almost primitives should pay >> attention to application-level features such as this one. >> >> If we're not going to make the variable apply to all usage, I think it should just be deleted before 30 is >> released. There's no point to it in that case, because it's still necessary to add (setenv "PAGER" "cat") to >> one's configuration. >> >> Alternatively, the default of comint-pager should be set to "cat". >> >> But I see no value in a variable like this if it neither applies to all (or at least most) users, nor provides better >> default behavior. >> >> > Lisp programs that use async-shell-command can arrange for >> > process-environment to have PAGER=SOMETHING as they see fit. >> > >> > My intention is primarily to affect interactive usage of async-shell-command. >> >> But comint-term-environment also affects "M-x compile". >> >> Yes, I would like comint-pager to also affect that. > > That makes very little sense to me, as "M-x compile" is used for > non-interactive programs. Yes. If you run a program which is supposed to be non-interactive, and it tries to run PAGER (as some do, e.g. "hg log"), then it will break. So setting PAGER would be helpful for M-x compile. Anyway, can we just remove comint-pager for now, to avoid adding something broken that has to be maintained? I can try it again for Emacs 31.