From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64849 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: [gmane.emacs.devel] gnus-read-mark not preserved Date: Fri, 29 Jun 2007 20:06:01 +0900 Organization: Emacsen advocacy group Message-ID: References: <873b0oxwpr.fsf@escher.local.home> <87myys71l1.fsf@escher.local.home> <87r6nwm40f.fsf@florent.maison> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1183115244 27164 80.91.229.12 (29 Jun 2007 11:07:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2007 11:07:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13360@lists.math.uh.edu Fri Jun 29 13:07:22 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1I4EJu-0006wl-5J for ding-account@gmane.org; Fri, 29 Jun 2007 13:07:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1I4EIq-0004KP-87; Fri, 29 Jun 2007 06:06:16 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1I4EIo-0004KD-53 for ding@lists.math.uh.edu; Fri, 29 Jun 2007 06:06:14 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1I4EIm-0002KW-Mv for ding@lists.math.uh.edu; Fri, 29 Jun 2007 06:06:14 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1I4EIl-0001lP-00 for ; Fri, 29 Jun 2007 13:06:11 +0200 Original-Received: from [66.225.201.151] (port=59929 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.63) (envelope-from ) id 1I4EIg-0001lr-RE for ding@gnus.org; Fri, 29 Jun 2007 06:06:07 -0500 X-Hashcash: 1:20:070629:ding@gnus.org::6bFqO6SePczSkD0q:00004crA 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.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:f8qUgri2B06w6XlLthGT86OS1Tw= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus 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 - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64849 Archived-At: --=-=-= >>>>> In <87r6nwm40f.fsf@florent.maison> Florent Rougon wrote: > Stephen Berman wrote: >> It appears that all marks are lost: they are not marked new (.) and, >> what's more distressing, ticks (!) are also undone. > I believe I have the same problem. I found the way to reproduce it and a solution for No Gnus, not for Gnus v5.11. The point is that the nntp marks are not updated when unplugged, and those marks are preferred to the ones that are saved in the ~/.newsrc.eld file next time you start Gnus. This will arise not only with nntp but also with nnimap, nnmaildir, etc. So, *I wish to ask people who use those backends together with the* *agent to test the attached patch*, since I use only nntp and nnml. Gnus v5.11 does not use the nntp marks, so there will probably be another cause. I am going to look into it further. Here is the way to reproduce the problem for people who don't use `unplugged' usually. You need to have the agent enabled of course. 1. Make sure Gnus is plugged. 2. Enter to a certain group in which there are a few unread articles using the RET key. 3. Mark unread articles with the # marks, and type `J s' to download those articles. 4. Exit the summary buffer using `q'. 5. Type `J j' to make Gnus unplugged. 6. Eenter to the group that you entered to before, read unread articles, and exit the summary buffer using `q'. 7. Make sure there is no unread article in that group, and exit Gnus using `q'. 8. Restart Emacs and Gnus. And you will see those articles that are not marked as read. The patch attached can be used with the trunk and the released No Gnus v0.6. --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- nnagent.el~ 2007-01-24 07:15:37 +0000 +++ nnagent.el 2007-06-29 10:46:02 +0000 @@ -132,6 +132,12 @@ (insert ")\n") (write-region (point-min) (point-max) (gnus-agent-lib-file "flags") t 'silent)) + ;; Also set mark for the original back end. + (let ((gnus-agent nil) + (method (gnus-find-method-for-group group))) + (when (gnus-check-backend-function 'request-set-mark (car method)) + (funcall (gnus-get-function method 'request-set-mark) + group action server))) nil) (deffoo nnagent-retrieve-headers (articles &optional group server fetch-old) --=-=-= Content-Disposition: inline See you next week. --=-=-=--