From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mekeor Melire Newsgroups: gmane.emacs.bugs Subject: bug#74083: 30.0.91; GNU Elpa "debbugs" package ignores gnus-posting-styles Date: Tue, 29 Oct 2024 10:15:53 +0000 Message-ID: <87o733tdt2.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32148"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Albinus To: 74083@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 29 11:18:24 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 1t5jIt-0008BO-Tp for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Oct 2024 11:18:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5jId-0002nt-Gj; Tue, 29 Oct 2024 06:18:07 -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 1t5jIZ-0002nl-Sh for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 06:18:05 -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 1t5jIZ-0002XK-KM for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 06:18: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:From:To:Subject; bh=k65rvWGYZYV3NCkxMgncg5a/evgqN4bW0ze2g0RVL3M=; b=ZCXexr7FgC58kuqurl/96KpGnnhv8k9Ms36c1KlrEbxmj8JtMJ/GbqRHjqr49VWXqUkPo2ufVNcepOXZ2vAdzZq+E/SMd60zAe5B3G99AP34svl90i/udVTNZJhE0/qfz7d68fuvB4y7NyBT46KXIZ9CTCkomQU6CawZ8GbD2d7cHFq13frNgHv995ysFfasHKsDd/r3K1uZFw/qorhSCQl0c7mwn6zH9R63R4NusPTcrI1y8gY2S7qvyTdyZKh6CsPPuV9t0UuiyAkJVF1mhhmrhywIE85NuvPp8kvdNhT5YiSfr8f+siNnCADkYX4OHNr9EDMd/tcGT1M8lK+Iag==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5jIY-0007N2-7Y; Tue, 29 Oct 2024 06:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mekeor Melire Original-Sender: "Debbugs-submit" Resent-CC: michael.albinus@gmx.de, bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2024 10:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74083 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Michael Albinus Original-Received: via spool by submit@debbugs.gnu.org id=B.173019706228313 (code B ref -1); Tue, 29 Oct 2024 10:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2024 10:17:42 +0000 Original-Received: from localhost ([127.0.0.1]:56092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5jIE-0007Mb-1B for submit@debbugs.gnu.org; Tue, 29 Oct 2024 06:17:42 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5jIB-0007MT-MT for submit@debbugs.gnu.org; Tue, 29 Oct 2024 06:17:40 -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 1t5jIA-0002mp-Bz for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 06:17:38 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5jI4-0002W7-2M for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 06:17:38 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 73CC6240027 for ; Tue, 29 Oct 2024 11:17:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1730197048; bh=1vUpTCBQRta0qFN2MWpOlXpGQVKIMMkG1bgugAfbQkw=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=l3/oIHzifovFUoNT0RN950qCbP2uRglmH/KfkVf56uh1Z9UK11APu+I0udUt1NgHB KnG9RNWf/BVy8bx5nBqgVARzz2NzqIhP8myBvqtzojDbSrzSDLVtJ13chVSjzSx9zW ZWYYPiYuqO/Zsnfak1pOzBSx3ry1OEddJdHZDhyL3e0DAlBFnnyPYwDgZG3QXu/MNU t6SkqL7R7mK6VITFmZbZUD4vzFlZfuT2S0YN0/fhNIjlwWnbE7loEMAgTa6rl3F6XL 0N4QqgfGK251JZgMw1N+XFvMOeB2p/pRYOvGtfQqq47XSIg63PMbAcrmQZVt4lyBwj VIr3ul1SJCjzw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Xd5m70TxBz9rxD; Tue, 29 Oct 2024 11:17:27 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=mekeor@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:294476 Archived-At: 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. Let's take a look at the relevant code in debbugs-gnu.el: (define-minor-mode debbugs-gnu-summary-mode ... (set (make-local-variable gnus-posting-styles) ...)) (In particular, the second "..." is not an expression that involves the global default value of gnus-posting-styles.) Here's how I personally work around this bug: (defun debbugs-gnu-summary-append-default-gnus-posting-styles () (when (local-variable-p 'gnus-posting-styles) (setq-local gnus-posting-styles (append gnus-posting-styles (default-value 'gnus-posting-styles))))) (add-hook 'debbugs-gnu-summary-mode-hook #'debbugs-gnu-summary-append-default-gnus-posting-styles)