From unknown Tue Jun 17 01:33:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57408 <57408@debbugs.gnu.org> To: bug#57408 <57408@debbugs.gnu.org> Subject: Status: [PATCH] New value 'thrifty' for Man-notify-method Reply-To: bug#57408 <57408@debbugs.gnu.org> Date: Tue, 17 Jun 2025 08:33:25 +0000 retitle 57408 [PATCH] New value 'thrifty' for Man-notify-method reassign 57408 emacs submitter 57408 Augusto Stoffel severity 57408 normal tag 57408 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 25 12:33:00 2022 Received: (at submit) by debbugs.gnu.org; 25 Aug 2022 16:33:00 +0000 Received: from localhost ([127.0.0.1]:51141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRFmu-0005FM-3c for submit@debbugs.gnu.org; Thu, 25 Aug 2022 12:33:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:55410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRFmr-0005FE-VJ for submit@debbugs.gnu.org; Thu, 25 Aug 2022 12:32:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRFmr-0001bi-Lk for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 12:32:57 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:37563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRFmp-00081i-Ou for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 12:32:57 -0400 Received: by mail-ej1-x62b.google.com with SMTP id h22so30358952ejk.4 for ; Thu, 25 Aug 2022 09:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc; bh=yURueO0H6hSIf/OhK+hBDFauG+sZsyQFeVBDqgmhoAY=; b=Cg7UoqKkU5PAqfu0HWexFjcc//zWxF/dmVHY/bl/joB0cCh5g+guH/yRnNMb8hiKse 2rUCmuxGMFRME66i1wN3j27ePkbyc3Zp6zh62zSOz8gFpk/62gTgw8kkZCe9pqjU/01O c4K5B2Sc98/a1JZOEF9uAzFkzF0SPI2D97lM8hGOcS33+oVW3YOGX3ZCfS00CFXMvNei 6O6eO/MWdrekUMFhwDzJhTr3YFDKyGDm071r+EEpXyRvm30+Er7sfuE/jpivnHrIr7jX tkHY6VlRhtTSzjWweY7eaioegrGJT3Lygp5gPj3luvViRE47AxVj4Sj74+dP9GG74n4P 6aiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc; bh=yURueO0H6hSIf/OhK+hBDFauG+sZsyQFeVBDqgmhoAY=; b=Pj5Bt82X6sxmgYqlUN2yK2II1aiEN+a5RuAEBdC58fAJyG+7BgSGUtqoEgj7oZGOp7 H2mVbIOQawo96Z7o8iZVs5VWY9dy5ZP6gyVt2g0tM5siqqRynsp9oE6hM1SoIjPIHdDV OL5PPwYX4R1IZG74GujJACGNLtup/YyEq6BW4F55fmVPrzRPOBQOA0Km48Pn9j6fEQOi SdrutNZE1H2Hme+JLtJ/OKJEIwL6UNX1DrC4GChwa3n1OeSRzIU5+xPRuLlUv9PDKPON CE9PtBcFqAY/A+v+gbzlDuC0GvxhgiOjQHHY5fYe4rYH9cbOmMNvzpWDpt29ieN83dEB yL2A== X-Gm-Message-State: ACgBeo2iemm8QQ0kN4O9DoKM+u1G3WckpVc0x+p3S074FU7jx1DkUe// dSL7HcVU8d3E8pxctEkP811hMWrD35Y= X-Google-Smtp-Source: AA6agR7xnm1nCv/nk1V8iWOfj4ZG+cgywIYHsl097C1Bf8W5rRDYn0q6qWoXXg2DuTcXJ3rcqBsV/A== X-Received: by 2002:a17:907:2daa:b0:73d:7e5e:9ae with SMTP id gt42-20020a1709072daa00b0073d7e5e09aemr2946396ejc.532.1661445173328; Thu, 25 Aug 2022 09:32:53 -0700 (PDT) Received: from ars3 ([2a02:8109:8ac0:56d0::157b]) by smtp.gmail.com with ESMTPSA id b2-20020a17090630c200b0072b92daef1csm2399391ejb.146.2022.08.25.09.32.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 09:32:52 -0700 (PDT) From: Augusto Stoffel To: bug-gnu-emacs@gnu.org Subject: [PATCH] New value 'thrifty' for Man-notify-method Date: Thu, 25 Aug 2022 18:32:50 +0200 Message-ID: <87r114cmh9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Fiddling with buffer-display-alist can be a bit tricky[1], so I'd like to suggest the following additional Man-notify-method value. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-New-option-thrifty-for-Man-notify-method.patch >From 4150463ed4743ba6e78c29b0ed690ebf809c85de Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Thu, 25 Aug 2022 18:21:39 +0200 Subject: [PATCH] New option thrifty for Man-notify-method * lisp/man.el (Man-notify-when-ready): Accept new 'thrifty' notify method. (Man-notify-method): Explain what 'thrifty' does. --- lisp/man.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/man.el b/lisp/man.el index d66f63972a..7ba7bee417 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -168,13 +168,14 @@ Man-notify-method bully -- make the manpage the current buffer and only window (sf) aggressive -- make the manpage the current buffer in the other window (sf) friendly -- display manpage in the other window but don't make current (sf) +thrifty -- reuse an existing manpage window if possible (sf) polite -- don't display manpage, but prints message and beep when ready quiet -- like `polite', but don't beep meek -- make no indication that the manpage is ready Any other value of `Man-notify-method' is equivalent to `meek'." :type '(radio (const newframe) (const pushy) (const bully) - (const aggressive) (const friendly) + (const aggressive) (const friendly) (const thrifty) (const polite) (const quiet) (const meek)) :group 'man) @@ -1229,6 +1230,11 @@ Man-notify-when-ready (and (frame-live-p saved-frame) (select-frame saved-frame)) (display-buffer man-buffer 'not-this-window)) + ('thrifty + (and (frame-live-p saved-frame) + (select-frame saved-frame)) + (display-buffer man-buffer '(display-buffer-reuse-mode-window + (mode . Man-mode)))) ('polite (beep) (message "Manual buffer %s is ready" (buffer-name man-buffer))) -- 2.37.2 --=-=-= Content-Type: text/plain [1]: For instance, Man-getpage-in-background may display a manpage buffer before setting its major mode, so setting (setq display-buffer-alist '(((derived-mode . Man-mode) ... )) ...) doesn't work. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 26 07:12:48 2022 Received: (at 57408) by debbugs.gnu.org; 26 Aug 2022 11:12:48 +0000 Received: from localhost ([127.0.0.1]:52369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRXGa-0007O0-Dy for submit@debbugs.gnu.org; Fri, 26 Aug 2022 07:12:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRXGZ-0007Nl-BE for 57408@debbugs.gnu.org; Fri, 26 Aug 2022 07:12:47 -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:Date:References: In-Reply-To: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=/MXGWOD8n/vT+SSYp7ChHAVDVDSIO6puyoes1jmgbLo=; b=TDjkLGxAg/8mVMtD+z9hQssMat /3K7BwS2NoZBNMHOXZZKR+mh89dNX1LtkowB76IjMWNsRTXKVx/WedA+/o2C4+y5faXvY0tRA8rEX sQl+HhoE2o+RLxpUPVe/2+UkZNy/f3oOr0VczaVi2kBe5a5aAq559l3nNKrSu+sjXprA=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRXGR-0000LS-IA; Fri, 26 Aug 2022 13:12:41 +0200 From: Lars Ingebrigtsen To: Augusto Stoffel Subject: Re: bug#57408: [PATCH] New value 'thrifty' for Man-notify-method In-Reply-To: <87r114cmh9.fsf@gmail.com> (Augusto Stoffel's message of "Thu, 25 Aug 2022 18:32:50 +0200") References: <87r114cmh9.fsf@gmail.com> X-Now-Playing: David Sylvian's _Secrets of the Beehive_: "Waterfront" Date: Fri, 26 Aug 2022 13:12:39 +0200 Message-ID: <877d2vdzrs.fsf@gnus.org> 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: Augusto Stoffel writes: > Fiddling with buffer-display-alist can be a bit tricky[1], so I'd like to > suggest the following additional Man-notify-method value. Makes sense to me; pushed to Emacs 29. 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: 57408 Cc: 57408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Augusto Stoffel writes: > Fiddling with buffer-display-alist can be a bit tricky[1], so I'd like to > suggest the following additional Man-notify-method value. Makes sense to me; pushed to Emacs 29. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 26 07:12:54 2022 Received: (at control) by debbugs.gnu.org; 26 Aug 2022 11:12:54 +0000 Received: from localhost ([127.0.0.1]:52372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRXGf-0007OI-OI for submit@debbugs.gnu.org; Fri, 26 Aug 2022 07:12:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRXGd-0007Ns-Kl for control@debbugs.gnu.org; Fri, 26 Aug 2022 07:12:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lZCz2bKe3qZDDeRAG9kVgt0lBWEqTNKrVr/59TBS7nA=; b=F7eLFncVpxT9vwlsaTLOMf8aqS QlXaGnHyQiCb451KzVkoad99wNk41TlSTqoK1FN9Q9p46nuj9yAP/URgyUpKoKs6PtRFu0x0++p7E uSR1UW0doTMIznnVdN185bHQVVke/bvGlH0kHxCwixpi5AZih0lYqG76UUvwHtnEzIAA=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRXGW-0000Lb-6w for control@debbugs.gnu.org; Fri, 26 Aug 2022 13:12:46 +0200 Date: Fri, 26 Aug 2022 13:12:43 +0200 Message-Id: <875yifdzro.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #57408 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: close 57408 29.1 quit 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: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 57408 29.1 quit From unknown Tue Jun 17 01:33:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Sep 2022 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator