From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: `report-emacs-bug' and mail-user-agent Date: Tue, 09 Apr 2013 14:24:51 +0200 Message-ID: <87d2u399ik.fsf@web.de> References: <87ip3yw217.fsf@web.de> <87ip3w3hod.fsf_-_@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365510298 13053 80.91.229.3 (9 Apr 2013 12:24:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Apr 2013 12:24:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 09 14:25:02 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPXbg-0002YQ-1s for ged-emacs-devel@m.gmane.org; Tue, 09 Apr 2013 14:25:00 +0200 Original-Received: from localhost ([::1]:46393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPXbf-00050d-Lj for ged-emacs-devel@m.gmane.org; Tue, 09 Apr 2013 08:24:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPXbc-00050U-Cd for emacs-devel@gnu.org; Tue, 09 Apr 2013 08:24:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPXbb-0003dZ-3F for emacs-devel@gnu.org; Tue, 09 Apr 2013 08:24:56 -0400 Original-Received: from mout.web.de ([212.227.15.3]:57453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPXba-0003dJ-PH for emacs-devel@gnu.org; Tue, 09 Apr 2013 08:24:55 -0400 Original-Received: from drachen.dragon ([92.74.136.91]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0M3Slc-1UhLVM0oWu-00r4Gf; Tue, 09 Apr 2013 14:24:52 +0200 Mail-Followup-To: emacs-devel@gnu.org, emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Mon, 08 Apr 2013 17:29:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V02:K0:wMKKpX1GfN3LaAZ3DwAqMuN9OO7iSg732bSTSo/vyMN 77zU3HWNwoP4iRzo8UjB9ADB5sa8Uoly/NfqOkxXgGu5whY5Z/ bvEF5BMrmWneCeylULoNihlY1RiBsDNNqqEk9S8lCTFszq1olk v1ikEKk2ya74YxU3NLfmzmfD734eCIanJ26ZJko944kGXV3Wyi qdRRzhcp8mJ5I1tvY4pkcNZnfaR1Jf9nipdFeBEvfg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158802 Archived-At: Stefan Monnier 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.