all messages for Emacs-related lists mirrored at yhetil.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; 2+ 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] 2+ messages in thread

end of thread, other threads:[~2024-10-29 12:45 UTC | newest]

Thread overview: 2+ 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.