From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Tennant Newsgroups: gmane.emacs.bugs Subject: bug#61552: Feature request: Add variable Man-prefer-synchronous-call Date: Mon, 20 Feb 2023 18:11:17 +0000 Message-ID: <87edqkcim2.fsf@sebyte.me> References: <87h6vlpp18.fsf@sebyte.me> <87zg9dsfjs.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11799"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2.50 (gnu/linux) To: 61552@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 20 19:12:14 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 1pUAe4-0002qr-Ep for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Feb 2023 19:12:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUAdx-0005N8-5o; Mon, 20 Feb 2023 13:12:05 -0500 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 1pUAdv-0005Ma-2d for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 13:12:03 -0500 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 1pUAdu-0006wh-Ip for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 13:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUAdu-0001IV-EW for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 13:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Tennant Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2023 18:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61552 X-GNU-PR-Package: emacs Original-Received: via spool by 61552-submit@debbugs.gnu.org id=B61552.16769166924941 (code B ref 61552); Mon, 20 Feb 2023 18:12:02 +0000 Original-Received: (at 61552) by debbugs.gnu.org; 20 Feb 2023 18:11:32 +0000 Original-Received: from localhost ([127.0.0.1]:53481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUAdP-0001Hd-Tz for submit@debbugs.gnu.org; Mon, 20 Feb 2023 13:11:32 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:33427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUAdK-0001HI-4q for 61552@debbugs.gnu.org; Mon, 20 Feb 2023 13:11:30 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D5FD55C012E; Mon, 20 Feb 2023 13:11:19 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 20 Feb 2023 13:11:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sebyte.me; h=cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1676916679; x=1677003079; bh=cx/lZ5BJBY E0oMGaX8x1O0c1MVkuom7jBoNk4s1V5bk=; b=szxY/49TnX3NkK6nH+/umBYr9x hS+ClylACA7/Xh5KCn3SHsBjdbf0oEzNLiMwBiNfCrpaheDHZZs2tVFobUU9+/Y8 Xkq63UUcbH4YMgAS4AIl7zsVfxXauDbbJTHDm5MvObQY2UTHD2nD3NDUNfsXgpId 32JvTIH31vTUv0L4MZMvZOYA8505sN62JqCapFU5pZZakcH9/0quIzKVwiuLZEUE IOvaJI0GuA5Jlv9YBrE1IBYwya4c7DsbeARvZeWGmKHhkpXkdtNu76smBzWOktek svwXy/I858idwId41CJp+THEbRXszqcC0O7nrDvFEpEtLf8qD+mzBN4dDnRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1676916679; x=1677003079; bh=cx/lZ5BJBYE0oMGaX8x1O0c1MVku om7jBoNk4s1V5bk=; b=Scp24DY0szo10kWWXv+MXluFiCGU2WOorkm6ecm6Yf87 Rkp51tIQqESpD0df+t3zTUzJ3mdrfc1ui+2HgDaXVzzbDtkUH9krF9LZQH0b9FcX 5osMHCsuWbcpDeNfhO5FfNytV+Yd1NcOftYhLp4Viww6/LUK6lfDdrGMt/Z8G/+X 2puk/2RW9OTJyJmbPSNKHH6xjiiVir4zSBEiPmOWTef+BpD0Ck7cNQUUdEh89MqL qcHnmmz/Mz8y7RGETNq1iab42VxWRJFMUx8lWigHtlqZ6pFoUGkuCIQr8DXr8KEz bpJmN+dILvqbkGptw6uTWRb0Qmi4mwOuOiIQoUN3/A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejhedguddtgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtsehmtd erredtreejnecuhfhrohhmpefuvggsrghsthhirghnucfvvghnnhgrnhhtuceoshguthes shgvsgihthgvrdhmvgeqnecuggftrfgrthhtvghrnhepuedttdffffekheeiffelieelte egiefgvdffuefftdevgfejtddtkeffjeeihffgnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepshgvsgihthgvodhrvghtuhhrnhdqphgrthhhse hfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i9e78401f:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for <61552@debbugs.gnu.org>; Mon, 20 Feb 2023 13:11:19 -0500 (EST) Original-Received: from sebyte by balor with local (Exim 4.94.2) (envelope-from ) id 1pUAdB-0004eO-TM for 61552@debbugs.gnu.org; Mon, 20 Feb 2023 18:11:17 +0000 In-Reply-To: <87zg9dsfjs.fsf@tcd.ie> (Basil Contovounesios's message of "Thu, 16 Feb 2023 17:09:27 +0000") 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:256210 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Quoth Basil Contovounesios on Thu, 16 Feb 2023 17:09:27 +0000: > [=E2=80=A6] > Please attach the patches here so that they can be tracked in this > bugtracker. > > Thanks, No problem Basil. Here's a patch against master: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Add-user-customizable-variable-Man-prefer-synchronou.patch Content-Description: Patch against master >From 179af66f885630a7bdf3d3f3146aceb8ad205ce6 Mon Sep 17 00:00:00 2001 From: Sebastian Tennant Date: Thu, 10 Mar 2022 08:36:04 +0000 Subject: [PATCH] Add user-customizable variable Man-prefer-synchronous-call * lisp/man.el (Man-getpage-in-background): Only call #'start-process when 'make-process satisfies #'fboundp AND Man-prefer-synchronous-call is bound to nil. --- lisp/man.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/man.el b/lisp/man.el index 286edf9314e..fb4f8f02db7 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -97,6 +97,12 @@ man :group 'external :group 'help) +(defcustom Man-prefer-synchronous-call nil + "Non-nil means always call the Un*x man command synchronously, +rather than asynchronously, which is the default behaviour." + :type 'boolean + :group 'man) + (defcustom Man-filter-list nil "Manpage cleaning filter command phrases. This variable contains a list of the following form: @@ -1118,7 +1124,8 @@ Man-getpage-in-background "[cleaning...]") 'face 'mode-line-emphasis))) (Man-start-calling - (if (fboundp 'make-process) + (if (and (fboundp 'make-process) + (not Man-prefer-synchronous-call)) (let ((proc (start-process manual-program buffer (if (memq system-type '(cygwin windows-nt)) -- 2.30.2 --=-=-=--