unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent
@ 2013-04-09 14:17 Michael Heerdegen
  2013-04-10  5:52 ` Katsumi Yamaoka
  2013-04-11 18:03 ` Wolfgang Jenkner
  0 siblings, 2 replies; 11+ messages in thread
From: Michael Heerdegen @ 2013-04-09 14:17 UTC (permalink / raw)
  To: 14166


Hello,

the problem is the following (with my setup):

- I have an active gnus; currently, I'm having a summary buffer showing
  the emacs-dev newsgroup.  I need it for reference for the composition
  of a bug report.

- I do M-x report-emacs-bug

The result is that the mail composition buffer will have a TO field of
"emacs-devel@gnu.org" instead of "bug-gnu-emacs@gnu.org".
`report-emacs-bug' uses the posting-style of the group I'm currently
reading.  Surprising, and not very useful.


Background: I use mail-user-agent == 'gnus-user-agent.  Not sure if
there are other related settings.

And 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 also to be able to use
the standard reply commands.  Please tell me if that's a bad idea).


I debugged a bit.  Here is what's going on:

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


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


Thanks,

Michael.



In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2013-04-04 on dex, modified by Debian
 (emacs-snapshot package, version 2:20130403-1)
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description:	Debian GNU/Linux 7.0 (wheezy)

Configured using:
 `configure --build x86_64-linux-gnu --host x86_64-linux-gnu
 --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man
 --with-pop=yes
 --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.3.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3.50/site-lisp:/usr/share/emacs/site-lisp
 --without-compress-info --with-crt-dir=/usr/lib/x86_64-linux-gnu/
 --with-x=yes --with-x-toolkit=gtk3 --with-imagemagick=yes
 CFLAGS='-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2'
 CPPFLAGS='-D_FORTIFY_SOURCE=2' LDFLAGS='-g -Wl,--as-needed
 -znocombreloc''






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

end of thread, other threads:[~2013-04-12 15:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 14:17 bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent Michael Heerdegen
2013-04-10  5:52 ` Katsumi Yamaoka
2013-04-10 13:39   ` Michael Heerdegen
2013-04-11  0:41     ` Katsumi Yamaoka
2013-04-11 13:51       ` Stefan Monnier
2013-04-11 19:06         ` Wolfgang Jenkner
2013-04-12  1:53           ` Katsumi Yamaoka
2013-04-12  7:39             ` Katsumi Yamaoka
2013-04-12 15:18               ` Katsumi Yamaoka
2013-04-11 18:03 ` Wolfgang Jenkner
2013-04-11 18:55   ` Michael Heerdegen

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