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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74083 in the body.
You can then email your comments to 74083 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to michael.albinus <at> gmx.de, bug-gnu-emacs <at> gnu.org:
bug#74083; Package emacs. (Tue, 29 Oct 2024 10:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mekeor Melire <mekeor <at> posteo.de>:
New bug report received and forwarded. Copy sent to michael.albinus <at> gmx.de, bug-gnu-emacs <at> gnu.org. (Tue, 29 Oct 2024 10:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#74083; Package emacs. (Tue, 29 Oct 2024 12:46:01 GMT) Full text and rfc822 format available.

Message #8 received at 74083 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Mekeor Melire <mekeor <at> posteo.de>
Cc: 74083 <at> debbugs.gnu.org
Subject: Re: bug#74083: 30.0.91; GNU Elpa "debbugs" package ignores
 gnus-posting-styles
Date: Tue, 29 Oct 2024 13:45:06 +0100
[Message part 1 (text/plain, inline)]
Mekeor Melire <mekeor <at> posteo.de> 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.

[Message part 2 (text/x-patch, attachment)]

Added tag(s) patch. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Thu, 31 Oct 2024 10:13:01 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 03 Nov 2024 05:49:02 GMT) Full text and rfc822 format available.

Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Wed, 06 Nov 2024 15:04:02 GMT) Full text and rfc822 format available.

Notification sent to Mekeor Melire <mekeor <at> posteo.de>:
bug acknowledged by developer. (Wed, 06 Nov 2024 15:04:02 GMT) Full text and rfc822 format available.

Message #17 received at 74083-done <at> debbugs.gnu.org (full text, mbox):

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.




Information forwarded to michael.albinus <at> gmx.de, bug-gnu-emacs <at> gnu.org:
bug#74083; Package emacs. (Mon, 11 Nov 2024 21:57:02 GMT) Full text and rfc822 format available.

Message #20 received at 74083 <at> debbugs.gnu.org (full text, mbox):

From: Mekeor Melire <mekeor <at> posteo.de>
To: 74083 <at> debbugs.gnu.org
Subject: Re: bug#74083: 30.0.91; GNU Elpa "debbugs" package ignores
 gnus-posting-styles
Date: Mon, 11 Nov 2024 21:56:41 +0000
2024-11-06 16:03 michael.albinus <at> gmx.de:

> > 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).

Sorry, I did actually try your patch within that week but somehow must
have failed to properly send an email reporting that it worked
well. Thanks for your efforts.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#74083; Package emacs. (Tue, 12 Nov 2024 08:04:02 GMT) Full text and rfc822 format available.

Message #23 received at 74083 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Mekeor Melire <mekeor <at> posteo.de>
Cc: 74083 <at> debbugs.gnu.org
Subject: Re: bug#74083: 30.0.91; GNU Elpa "debbugs" package ignores
 gnus-posting-styles
Date: Tue, 12 Nov 2024 09:03:21 +0100
Mekeor Melire <mekeor <at> posteo.de> writes:

Hi Meteor,

> Sorry, I did actually try your patch within that week but somehow must
> have failed to properly send an email reporting that it worked
> well. Thanks for your efforts.

Meanwhile, there is Debbugs 0.42 on GNU ELPA. It contains that patch.

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 10 Dec 2024 12:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 252 days ago.

Previous Next


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