From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#11514: 24.0.97; gnus-user-agent no longer sets up Gcc Date: Tue, 22 May 2012 08:29:09 +0900 Organization: Emacsen advocacy group Message-ID: References: <87bollw5d3.fsf@silenus.orebokech.com> <87likloiyo.fsf@turtle.gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1337643035 17337 80.91.229.3 (21 May 2012 23:30:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 May 2012 23:30:35 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , Romain Francoise , Sven Joachim To: 11514-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 22 01:30:34 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SWc3c-0002FQ-Rm for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 May 2012 01:30:33 +0200 Original-Received: from localhost ([::1]:39363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWc3c-0004qk-Ce for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 May 2012 19:30:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWc3Y-0004oz-MC for bug-gnu-emacs@gnu.org; Mon, 21 May 2012 19:30:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWc3T-0008Io-48 for bug-gnu-emacs@gnu.org; Mon, 21 May 2012 19:30:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWc3T-0008IV-0c for bug-gnu-emacs@gnu.org; Mon, 21 May 2012 19:30:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SWc46-0004ad-JJ; Mon, 21 May 2012 19:31:02 -0400 In-Reply-To: <87bollw5d3.fsf@silenus.orebokech.com> Resent-From: Katsumi Yamaoka Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Mon, 21 May 2012 23:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 11514 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Mail-Followup-To: 11514@debbugs.gnu.org, yamaoka@jpl.org Original-Received: via spool by 11514-done@debbugs.gnu.org id=D11514.133764303317599 (code D ref 11514); Mon, 21 May 2012 23:31:02 +0000 Original-Received: (at 11514-done) by debbugs.gnu.org; 21 May 2012 23:30:33 +0000 Original-Received: from localhost ([127.0.0.1]:37785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWc3Z-0004Zl-62 for submit@debbugs.gnu.org; Mon, 21 May 2012 19:30:32 -0400 Original-Received: from orlando.hostforweb.net ([216.246.45.90]:53636) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWc3B-0004Y3-08 for 11514-done@debbugs.gnu.org; Mon, 21 May 2012 19:30:27 -0400 Original-Received: from localhost ([127.0.0.1]:54186) by orlando.hostforweb.net with smtp (Exim 4.77) (envelope-from ) id 1SWc2O-0002gx-Tr; Mon, 21 May 2012 18:29:17 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130006 (=?UTF-8?Q?=E7=9C=9F?= Gnus v0.6) Emacs/24.1.50 (i686-pc-cygwin) Cancel-Lock: sha1:IXkzynG8s/s5DzA2SDZixtEDHz4= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60271 Archived-At: Sven Joachim wrote: > On 2012-05-18 23:23 +0200, Romain Francoise wrote: >> If you put the following in /tmp/foo.el: >> >> (setq mail-user-agent 'gnus-user-agent >> gnus-message-archive-group "nnimap+foo:Sent") >> >> then start Emacs with `emacs -Q -l /tmp/foo.el' then do `C-x m', the >> resulting Message buffer doesn't have a Gcc header. In Emacs 23 and >> 24.0.92, the Gcc header was (correctly, I think) added to the buffer. >> >> Note: whether or not Gnus is started beforehand doesn't make a difference. This is the issue of only a case where Gnus is running, since Gcc is Gnus' feature and the `gnus-user-agent' agent behaves like the `message-user-agent' agent now if Gnus is not alive: 2012-02-09 Lars Ingebrigtsen * gnus-msg.el (gnus-msg-mail): Use `message-mail' if Gnus isn't running. (So, why one uses `C-x m' rather than `m'? Ok, he mey be in a non-Gnus window.) > This seems to have been introduced by the following change in the > emacs-24 branch: > ,---- >| revno: 107813 >| author: Lars Magne Ingebrigtsen >| committer: Katsumi Yamaoka >| branch nick: emacs-24 >| timestamp: Wed 2012-04-11 22:31:16 +0000 >| message: >| gnus-art.el (article-wash-html): Fix non-ASCII characters when >| washing HTML (bug#7410). >| gnus-msg.el (gnus-inews-insert-gcc): Protect against when we don't >| have a group name. >| gnus-start.el (gnus-read-newsrc-el-file): Protect against broken >| .newsrc.el files. > `---- > The diff for gnus-msg.el is this: > === modified file 'lisp/gnus/gnus-msg.el' > --- lisp/gnus/gnus-msg.el 2012-03-14 22:15:04 +0000 > +++ lisp/gnus/gnus-msg.el 2012-04-11 22:31:16 +0000 > @@ -1670,11 +1670,13 @@ this is a reply." > (not > (setq result > (cond > - ((stringp (caar var)) > + ((and group > + (stringp (caar var))) > ;; Regexp. > (when (string-match (caar var) group) > (cdar var))) > - ((functionp (car var)) > + ((and group > + (functionp (car var))) > ;; Function. > (funcall (car var) group)) > (t > It corresponds to commit bf5aff3ff7c87 in the no-gnus branch in Gnus > git. Reverting this change does not help. I believe the right fix is to modify `gnus-msg-mail' so as to bind `gnus-newsgroup-name' to a string like `gnus-group-mail' does. Fixed in the emacs-24 branch.