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: Wed, 07 Aug 2024 11:05:47 -0400 Message-ID: References: <86sevmupgo.fsf@gnu.org> <86bk29vcof.fsf@gnu.org> <26b6e3e6-7eee-686d-013b-0fc02c4125fe@gmail.com> <8634nhps4t.fsf@gnu.org> <86v80do795.fsf@gnu.org> <86o765o4gg.fsf@gnu.org> <86bk24o8jn.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="16668"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jim Porter , 72426@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 07 17:07:13 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 1sbiFq-00043H-75 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Aug 2024 17:07:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbiFL-00050p-Al; Wed, 07 Aug 2024 11:06:39 -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 1sbiFJ-00050Z-Vb for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 11:06:38 -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 1sbiFI-0001Cq-Sr for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 11:06:37 -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=+onlbStnRjADStYozG9gratoGq2DCWDpI81tLC/hNto=; b=eI1ReI3gr+9fkJUuP91PgHbQpHAL60pHcSisYfD6+HjW2N2iPJAoz8TnwRPypxR9zVF7YeUnteCmMZ3uhMjsoLEUcXrYz5ItUOvp55eozv0hCADSbbLI5e12jYp99lYc5yodmO49+YMJmrmlE5Qa0Kw6Uo6Hi8fe4hSE+vH7NqG6mfmza5MD7nDxEw76xaM5HguX85B8bUUdJvCm9Dzw5r70MJ4I5bOlGuD3SHJyTkNOEJu9fmwPVp6L8NE+6mHm4HhiNjev4R4qSn0IUjXavK+dLAaI8pE9O8nYam9vrru9uRhddujfleoVeNnRjRy2QoSk8jlrnJtG7ddvaXe5gA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbiFh-0001KG-U1 for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 11:07: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: Wed, 07 Aug 2024 15:07: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.17230431815031 (code B ref 72426); Wed, 07 Aug 2024 15:07:01 +0000 Original-Received: (at 72426) by debbugs.gnu.org; 7 Aug 2024 15:06:21 +0000 Original-Received: from localhost ([127.0.0.1]:34908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbiF3-0001J4-7F for submit@debbugs.gnu.org; Wed, 07 Aug 2024 11:06:21 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]:57041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbiF0-0001Io-QC for 72426@debbugs.gnu.org; Wed, 07 Aug 2024 11:06:19 -0400 In-Reply-To: <86bk24o8jn.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 07 Aug 2024 14:51:24 +0300") DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1723043148; bh=+onlbStnRjADStYozG9gratoGq2DCWDpI81tLC/hNto=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=FNSDRBLIDkh6X5HchFY7Gpk/W4g5zgl5wPe5RsvGv11L7vYUw0qFbpFSZ6gi9h2eP XWCx+QbCeaNP9l5P+8pZxASrIxx+bmEbxKogYfZSEEjVUK7kN7tuIE7FogLHJp6s3j 8a5L7rbp6FGJMVh3n7nMa1P9JrJnSE2BnHVV0wNXzCY27D2Via0kSITx99iczftg38 FSVO+6CXM8bnK0hoit6gz/kgvQ8N1xXpg4/hGb346qLOFgRVFqygcb+fSKUVXLlUu5 IjVSHrVnLw3fNIIdYarD9m0eexBis4j51GvKqlIjL/6Cm/Agjy54e6avzR8ndjdFFL LVR3QAyKRaMBw== 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:289892 Archived-At: Eli Zaretskii writes: >> Date: Tue, 6 Aug 2024 19:36:15 -0700 >> Cc: 72426@debbugs.gnu.org >> From: Jim Porter >> >> Just to be extra-sure, I tried using 'async-shell-command' to run "git >> log" with PAGER unset, and sure enough it tried to use "less" for >> paging, which didn't go very well. "PAGER=cat" was much better. > > Did you try with process-connection-type nil? With process-connection-type nil, git will never run a pager (since like many programs it checks whether stdout is a terminal before doing so). So both: (let ((process-connection-type nil) (process-environment (cons '("PAGER" "less") process-environment))) (async-shell-command "git log")) and (let ((process-connection-type nil) (process-environment (cons "PAGER" process-environment))) (async-shell-command "git log")) behave identically. Setting PAGER=cat is only necessary for process-connection-type=t.