unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#74083: 30.0.91; GNU Elpa "debbugs" package ignores gnus-posting-styles
@ 2024-10-29 10:15 Mekeor Melire
  2024-10-29 12:45 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 5+ messages in thread
From: Mekeor Melire @ 2024-10-29 10:15 UTC (permalink / raw)
  To: 74083; +Cc: Michael Albinus

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)





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-11-12  8:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-29 10:15 bug#74083: 30.0.91; GNU Elpa "debbugs" package ignores gnus-posting-styles Mekeor Melire
2024-10-29 12:45 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-06 15:03   ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-11 21:56     ` Mekeor Melire
2024-11-12  8:03       ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).