From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74083: 30.0.91; GNU Elpa "debbugs" package ignores gnus-posting-styles Date: Tue, 29 Oct 2024 13:45:06 +0100 Message-ID: <87h68v5b8t.fsf@gmx.de> References: <87o733tdt2.fsf@posteo.de> Reply-To: Michael Albinus 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="38303"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74083@debbugs.gnu.org To: Mekeor Melire Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 29 13:46:23 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 1t5lc5-0009kN-V5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Oct 2024 13:46:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5lc1-00073i-Ta; Tue, 29 Oct 2024 08:46:18 -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 1t5lbo-00070t-Dc for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 08:46:06 -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 1t5lbl-0002nW-SP for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 08:46:03 -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=TaoAw6aOzT2pZM8eRBNFAT7kZs0VrrZXyikYDawgczU=; b=EJb08nus1QmIOrNEy/R9JW5htqSDF3H9ATYKylehR451OO7bE/xVgKXvIObMlfhMorZb6Af4buEbuYWpIyPAm8kZaHTg9WUswyvjWofWpGdRecI+uO5UUpBqTCjwkrEsWNG7fN8VfdYb+d+HIyy3Xu09ndZxiJpuF8XTXpFtAE2lQmU088OsLDJTZepke1Yg30tkBY5FJK9moFbd2nSRu3VaaigXKIpHXLA7lijWFUH1cNyVUBXrxzntemRboP8pl/LRG9gECm2E+H9tWzEx4acD49mVowkvt/jZZAKn7lCHFeYfxt8XjTTmVxx4k4+JB8dSDkVCwiibjFCUVE1M6Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5lbl-0003Kg-Mz for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 08:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2024 12:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74083 X-GNU-PR-Package: emacs Original-Received: via spool by 74083-submit@debbugs.gnu.org id=B74083.173020592112794 (code B ref 74083); Tue, 29 Oct 2024 12:46:01 +0000 Original-Received: (at 74083) by debbugs.gnu.org; 29 Oct 2024 12:45:21 +0000 Original-Received: from localhost ([127.0.0.1]:56338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5lb7-0003KI-5z for submit@debbugs.gnu.org; Tue, 29 Oct 2024 08:45:21 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:41001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5lb4-0003Fp-RW for 74083@debbugs.gnu.org; Tue, 29 Oct 2024 08:45:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1730205911; x=1730810711; i=michael.albinus@gmx.de; bh=TaoAw6aOzT2pZM8eRBNFAT7kZs0VrrZXyikYDawgczU=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=MiadxRccgPFY+cd5GCj8zFxRA4CYoVtwilEy6rFfV/w8FpvMUrH2S7VWsS1CDVZA rQITLyLALf5RTgZOnmDfSS/QN6zrD1V3WkL+QpK4HdEtTgTTn30jUqHr4v+WzAgIM Edcm5Ws+qwA56HUwHsyxNF+d8OavKOddKEzNfYyfCySqfTsllpXygQGecFV58FiZu XkTYPAsCMlLKTTshhPpRM0cmc9umslL6d+Xi/jX9OsjyK79H8BIeNElHhw7BUC5wb kMRA1FKk5xoJLPmtcGoKkx7AnBQCtnNtF+gyLYpop1nXPfhS6mdfk2ttsWcsnkL7u 5PjmQx+QjBlBD7FOxw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MPokD-1tSVVM23QB-00JGeC; Tue, 29 Oct 2024 13:45:11 +0100 In-Reply-To: <87o733tdt2.fsf@posteo.de> (Mekeor Melire's message of "Tue, 29 Oct 2024 10:15:53 +0000") X-Provags-ID: V03:K1:ac10b9pqEqfi298znK6aZSTtzLf3T8AAjMSLQUleaEmAw6couMX EoDuqxZdUndhV8X4P+nh+zte/kWClEky9uVXFLZ65QRS+42cBXnx3k8Rtrhs1fkCFs7OUAX ZpCICvqO4zHtZJerTwlVjlSFusHfx8JWSIiqoC2B3FK17yHgyMWrQ8qRRzN0HnP7GLal6Fr OdrBhl3d6MEy4/U8ecR7Q== UI-OutboundReport: notjunk:1;M01:P0:2sAPNwywt7M=;55MNVGHX+14KXcr7pZNAi6t395O 5PAznDSCqKQtQz+ZXIZeM036i3UrQTK8P9Mh1sPagbR+501Jg6bLrQ0J7XUhNU8G7E9XhBEhx o07l0/vFW3G+p/ALJIbdODHU17n6pOX85rCDbpnjcmLOPYfCj9XyPDd8PEt8e+nCJiPXdyq/K 5kkVrSr6x08Mq7jI10nOow7WS750NG+ovj+2nMX9NqKBi4hOHjdxDI4fbqr7z5BNWFzbLij9W jRnKAZ50P9AfRb/0GJGjKJYli7fmnnBpRQ9GlWFamJqeDtX/NNaF4EUpzbzLxeLGL816HnrNR kmadiOlQE+k15HUy7Pun9DdyJOELNctY8ygZCoFHKfV6JHgDrGyUy84ghcZKKNHzfA51wLc1e gt06vp4Fdsn0BJWI71V80toI6wtQZ+Xc8qwfB4Z9WI2BK0K1gNiroKmW5OmNldpFcUVSSJ7+r xWlTxZ1IZfWUFKU8kCFtwlkfMZue0VQNDoTwQqDEuiha45zrakV7Ne2eFy6k+B6aM/c01z/22 imt6FuXdnPzE+E/yswRSvWjFrxdrPZE+WXob//T+/Gpk1YDgwXCBl6yKJ6gpfQQcVnkXDZwTV jYlU5stWxoBwXEZWlheOJdfraJcC3lxWNrXA83wPrb19KfcCV6frDy5jC6/L2WEXppP5JhSvx 66HwzV5IWJldJZoiFQSEuwMUDeh5SarTL17gS7ekw1QNYahmWgdJSmmdf6rJsVnH+IvyZhigW jLG2iJutkqk/tOiFGBoo+vvXSQgaNINlTGe7Ya6HGvs5XLyfXa9OKrPYuxzLmAyFRof0OGmT 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:294483 Archived-At: --=-=-= Content-Type: text/plain Mekeor Melire writes: Hi Mekeor, > The "debbugs" package in GNU Elpa archive buffer-locally overrides the > gnus-posting-styles variable in debbugs-gnu-summary-mode. > > Personally, I use gnus-posting-styles to configure conditions for when > which email-address should be used. E.g. I want debbugs.el to always > use the email-address from which I'm now sending this email. But > debbugs.el won't obey my configuration in gnus-posting-styles. Well, this was made by intention in order to keep the posting-styles defined in debbugs-gnu-summary-mode. Could you, pls try the appended patch? It introduces a new user option debbugs-gnu-summary-keep-posting-styles. When set to t, your personal posting-styles shall be kept. Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/debbugs-gnu.el b/debbugs-gnu.el index b5f07ad3cd..85c891a483 100644 =2D-- a/debbugs-gnu.el +++ b/debbugs-gnu.el @@ -1897,6 +1897,11 @@ MERGED is the list of bugs merged with this one." :version "29.1" :type 'regexp) +(defcustom debbugs-gnu-summary-keep-posting-styles nil + "Whether to keep the user's `gnus-posting-styles'." + :version "30.1" + :type 'boolean) + (defvar debbugs-gnu-summary-mode-map (let ((map (make-sparse-keymap))) (define-key map "C" #'debbugs-gnu-send-control-message) @@ -1910,7 +1915,11 @@ MERGED is the list of bugs merged with this one." \\{debbugs-gnu-summary-mode-map}" :lighter " Debbugs" :keymap debbugs-gnu-summary-mode-map (set (make-local-variable 'gnus-posting-styles) - `((".*" + `(;; We apply them first, because we want to keep our own + ;; posting-styles prior the others. + ,@(and debbugs-gnu-summary-keep-posting-styles + (default-value 'gnus-posting-styles)) + (".*" (eval (when (buffer-live-p gnus-article-copy) (with-current-buffer gnus-article-copy --=-=-=--