From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#72426: 29.2.50; comint-pager doesn't affect async-shell-command Date: Tue, 6 Aug 2024 19:36:15 -0700 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29839"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72426@debbugs.gnu.org To: Spencer Baugh , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 07 04:37:58 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 1sbWYn-0007bt-VU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Aug 2024 04:37:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbWYX-0004p3-Mu; Tue, 06 Aug 2024 22:37:42 -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 1sbWYV-0004c3-4L for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 22:37: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 1sbWYU-0003Or-Bd for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 22:37:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=CTuIzHjBs6IL6nleHc83/3qvfhiJQRdAGZPtAH60NJ4=; b=hYmM0h8P675KKUcSFP93auNcd+jLIWUgPvcpm6HtRVqDrN+ZFaOSjxnRK3WIQpH9UMxdWit2tuB90wvhM82B28ukhi4wAZ5xb0xxcpOSrd6uEfb9Cpqqm1UgJvgIlkGN2TeI+sx//sQTAxATRsDKLfMnKrt/xoSl9IW+Cfyc8MCFQwWCTJV9lXz+ZopFI3QW915wjMzVM/yXJTdIDqRtJYN/xNVeq0cVEr+knxl51Xb6Ma4YLBLGHw4oMVN9ftPqNF7jq5D8ZWbT5WOFkafDFETsAg3Do10s7wV1FhnMyr5AyvCtUHXhsJ1V3pGIVt3QBBjZjp63HogsRdn7oSjE3A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbWYs-00026Q-7M for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 22:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Aug 2024 02:38:02 +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.17229982708062 (code B ref 72426); Wed, 07 Aug 2024 02:38:02 +0000 Original-Received: (at 72426) by debbugs.gnu.org; 7 Aug 2024 02:37:50 +0000 Original-Received: from localhost ([127.0.0.1]:33408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbWYf-00025y-LE for submit@debbugs.gnu.org; Tue, 06 Aug 2024 22:37:50 -0400 Original-Received: from mail-pl1-f170.google.com ([209.85.214.170]:42053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbWYd-00025i-2E for 72426@debbugs.gnu.org; Tue, 06 Aug 2024 22:37:48 -0400 Original-Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1fc56fd4de1so3332235ad.0 for <72426@debbugs.gnu.org>; Tue, 06 Aug 2024 19:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722998176; x=1723602976; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=CTuIzHjBs6IL6nleHc83/3qvfhiJQRdAGZPtAH60NJ4=; b=arTPKIaa2RLSWfNpR5mAefJa5IossDSG16FsgsM14wNqW9K6BCBiIOFOqPkmheE4dz ONDIcyK1ilUaQq2oMkJCNLpIKHegOV7yLeK6ZspRXf8IkFk8SdV2be6VvXLZLeHkBjWc FzFFHCBDIUTdSQ/0j5NYh9ve+18ez3m2kiVd1vAok3Yb696yHUlWIyUmiGN2k3g7v7bN S2Lf7Whxs2R9//XuawrVS6N4Lgn9u9mUj6/lH2rhdqF73bgJsl3ISuWiUBehXu/Adt/g EQMI1U+qv35MoGa+AiZpLslw6DmuH3RZjyUHJgRJdABTNDImX73pRftt07Vqjn/O6ZtJ NfKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722998176; x=1723602976; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CTuIzHjBs6IL6nleHc83/3qvfhiJQRdAGZPtAH60NJ4=; b=MJpGFNqHid2XUnCAt0A/76I5TWxhujm50Wca66GjIk7YUd/ka10GWIx4EdZC9XZaW7 R+hrBm98w6lViVRH1hnohHUZeYskXqkE/LT/zt4A6U10SMTYr8EvSbyjP7awBFQuqq00 QPaFc8TeWUOOAWXI1FkCrATymrowTmqqgZzkDxjM6octyDD5QrckU2LLZ2z039p2GAUm jGUoAgx2i6mzVSoJNppXvj3qxccdvXvZLEJib18sqWS2gUXe2Smp4umvOxj1kLmGxLK3 L71Cf5x7DxvDHXo+lTXz7EtXsCQ6y6oXm6TcJDz+PtKUJYUJPE4NZx6V+5kUy2er+WFY ssKA== X-Gm-Message-State: AOJu0Yzh7wI4XVwS4aDAC/JKK4Od8UIxBd7HJ0v9OhBOZrCxcTduBBZ4 DaoiFkkxzmb+HEoDNqV62DNy1PWj9G/5I5llg6y4pUkv9i2uGNF2 X-Google-Smtp-Source: AGHT+IFZCD0hkVSumdK89XwogHkcW2dgZ91xEkcQnoVmAlV+jYj3CrGjw2Ecl2MAKiaxEpHb2lmjBA== X-Received: by 2002:a17:903:22c1:b0:1fd:7ff5:c673 with SMTP id d9443c01a7336-200853a50b2mr13426255ad.2.1722998175873; Tue, 06 Aug 2024 19:36:15 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-1ff5905f85csm94655005ad.160.2024.08.06.19.36.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Aug 2024 19:36:15 -0700 (PDT) Content-Language: en-US In-Reply-To: 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:289864 Archived-At: On 8/6/2024 12:23 PM, Spencer Baugh wrote: > OK, how about this? [snip] > + ;; Similarly, a subprocess should not try to invoke a pager, as most > + ;; pagers will fail in a dumb terminal. Many programs default to > + ;; using "less" when PAGER is unset, so set PAGER to "cat"; using cat > + ;; as a pager is equivalent to not using a pager at all. > + (when (executable-find "cat") > + (setenv "PAGER" "cat")) This makes sense to me. 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.