emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `report-emacs-bug' and mail-user-agent


From: Michael Heerdegen
Subject: Re: `report-emacs-bug' and mail-user-agent
Date: Tue, 09 Apr 2013 14:24:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> > Oops.  I have mail-user-agent == 'gnus-user-agent.  When I call
> > `report-emacs-bug' while Gnus is running, the TO header of the bug
> > report will not be the bug address, but some mailing list
> > currently visited.

>> I'll try to find out why this happens.

Hope I didn't send any nonsense bug reports while debugging... ;-)

Call tree:

M-x report-emacs-bug
--> compose-mail
--> (get mail-user-agent 'composefunc) == 'gnus-msg-mail
--> (gnus-setup-message 'message
        (message-mail to subject other-headers continue
                      nil yank-action send-actions return-action))

The macro `gnus-setup-message' binds `#:group' to the value of
gnus-newsgroup-name, which is "nntp+Gmane:gmane.emacs.devel" in my test
case.

Then it does this:

(add-hook 'message-mode-hook
          (if (memq ,config '(reply-yank reply))
              (lambda ()
                (gnus-configure-posting-styles ,group))
            (lambda ()
              ;; There may be an old " *gnus article copy*" buffer.
              (let (gnus-article-copy)
                (gnus-configure-posting-styles ,group)))))

Indeed, I have this element in `gnus-posting-styles':

("\\(?:\\(?:g\\(?:\\(?:mane\\|nu\\)\\.emacs\\.devel\\)\\)\\)\\'"
  (TO "address@hidden")
  (BCC #1="address@hidden")
  . #2=((FCC nil)))

mainly because I read emacs-devel as a group, but want to reply always
to the mailing list.  (I know about S L, but I want to be able to use
the standard reply commands.  Please tell me if that's a bad idea.)

Yeah, and at the end, running `message-mode-hook' changes the TO field
according to the posting style via `gnus-configure-posting-styles'.

I guess binding `gnus-inhibit-posting-styles' to nil somewhere would
help, but I'm no expert for Gnus (and for mail, in general).

What can I/we do?


Regards,

Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]