GNU bug report logs - #74083
30.0.91; GNU Elpa "debbugs" package ignores gnus-posting-styles

Previous Next

Package: emacs;

Reported by: Mekeor Melire <mekeor <at> posteo.de>

Date: Tue, 29 Oct 2024 10:18:01 UTC

Severity: wishlist

Tags: patch

Found in version 30.0.91

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#74083: closed (30.0.91; GNU Elpa "debbugs" package ignores
 gnus-posting-styles)
Date: Wed, 06 Nov 2024 15:04:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 06 Nov 2024 16:03:37 +0100
with message-id <87ed3ojtfa.fsf <at> gmx.de>
and subject line Re: bug#74083: 30.0.91; GNU Elpa "debbugs" package ignores gnus-posting-styles
has caused the debbugs.gnu.org bug report #74083,
regarding 30.0.91; GNU Elpa "debbugs" package ignores gnus-posting-styles
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
74083: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74083
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mekeor Melire <mekeor <at> posteo.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.91; GNU Elpa "debbugs" package ignores gnus-posting-styles
Date: Tue, 29 Oct 2024 10:15:53 +0000
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)


[Message part 3 (message/rfc822, inline)]
From: Michael Albinus <michael.albinus <at> gmx.de>
To: Mekeor Melire <mekeor <at> posteo.de>
Cc: 74083-done <at> debbugs.gnu.org
Subject: Re: bug#74083: 30.0.91; GNU Elpa "debbugs" package ignores
 gnus-posting-styles
Date: Wed, 06 Nov 2024 16:03:37 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi Mekeor,

> Could you, pls try the appended patch?

No response for a week. So I've pushed the patch to the repository. Will
appear with next debbugs version on GNU ELPA (0.42).

Best regards, Michael.


This bug report was last modified 254 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.