From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82070 Path: news.gmane.org!not-for-mail From: Matt Ford Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-sync.el patch and notes Date: Sat, 21 Jul 2012 15:11:24 +0100 Organization: Dancingfrog Message-ID: <87eho5dx0z.fsf@dancingfrog.co.uk> References: <87d33vtkms.fsf@dancingfrog.co.uk> <871uk9p4cj.fsf@lifelogs.com> <87hat12v4i.fsf@dod.no> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342879964 23651 80.91.229.3 (21 Jul 2012 14:12:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2012 14:12:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30340@lists.math.uh.edu Sat Jul 21 16:12:43 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SsaQE-0004eQ-3C for ding-account@gmane.org; Sat, 21 Jul 2012 16:12:42 +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 1SsaPQ-0001xZ-9z; Sat, 21 Jul 2012 09:11:52 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SsaPN-0001xL-J8 for ding@lists.math.uh.edu; Sat, 21 Jul 2012 09:11:49 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SsaPL-0005ta-IF for ding@lists.math.uh.edu; Sat, 21 Jul 2012 09:11:49 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SsaPJ-00040O-Hz for ding@gnus.org; Sat, 21 Jul 2012 16:11:45 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SsaPH-0003fQ-Ty for ding@gnus.org; Sat, 21 Jul 2012 16:11:43 +0200 Original-Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jul 2012 16:11:43 +0200 Original-Received: from matt by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jul 2012 16:11:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: rain.gmane.org User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (gnu/linux) Cancel-Lock: sha1:RNR41CA9j3uAy/PILBK8QWR1kgE= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82070 Archived-At: Steinar Bang writes: > Hm... will this fix the quirkiness that sometimes happens when using > gnus-sync-read? If so, I would definitely like to see this go in. It will fix it for syncing to a file - I have a much better time of it now. I might even put the read hooks back into place for my setup! The patch doesn't address the issue if you use couchdb. I can point you to the bit that needs fixing. In the following function: > (defun gnus-sync-lesync-install-group-entry (name) > [...] > ;; install the subscription level > (when (gnus-sync-lesync-get-prop 'level name) > (setf (nth 1 master) (gnus-sync-lesync-get-prop 'level name))) > ;; install the read and other marks > (setf (nth 2 master) (gnus-sync-lesync-get-prop 'read name)) > (setf (nth 3 master) (gnus-sync-lesync-get-prop 'marks name)) > (gnus-sync-lesync-set-prop 'checksum > name > (gnus-sync-deep-print master)) > nil) > (gnus-error 1 =22%s: invalid LeSync group %s=22 loc name) > 'invalid-name))) the final `(setf (nth 3 master))' may fail as it might not exist. A similar fix to that of the file based solution would be to change this code to remove the group entry from master and build up a new group entry from gnus-sync-lesync-get-prop and push back onto master (maybe you can get the full lesync entry to stop having to rebuild it). Hope that helps. -- Matt