unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: `report-emacs-bug' and mail-user-agent
Date: Tue, 09 Apr 2013 14:24:51 +0200	[thread overview]
Message-ID: <87d2u399ik.fsf@web.de> (raw)
In-Reply-To: <jwva9p8vhi4.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 08 Apr 2013 17:29:33 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> 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 "emacs-devel@gnu.org")
  (BCC #1="michael_heerdegen@web.de")
  . #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	other threads:[~2013-04-09 12:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07 19:53 24.3.50; Timer firing after being canceled Michael Heerdegen
2013-04-07 22:47 ` Stefan Monnier
2013-04-08 20:12   ` `report-emacs-bug' and mail-user-agent (was: 24.3.50; Timer firing after being canceled) Michael Heerdegen
2013-04-08 21:29     ` `report-emacs-bug' and mail-user-agent Stefan Monnier
2013-04-09 12:24       ` Michael Heerdegen [this message]
2013-04-09 13:23         ` Stefan Monnier
2013-04-09 14:20           ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2u399ik.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).