From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68528 Path: news.gmane.org!not-for-mail From: Ross Patterson Newsgroups: gmane.emacs.gnus.general Subject: emacsclient interactions with exiting a summary Date: Fri, 08 May 2009 12:38:35 -0700 Message-ID: <87skjf2xms.fsf@transitory.lefae.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241811589 18990 80.91.229.12 (8 May 2009 19:39:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 May 2009 19:39:49 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16961@lists.math.uh.edu Fri May 08 21:39:39 2009 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 1M2Vuz-0003NH-3r for ding-account@gmane.org; Fri, 08 May 2009 21:39:37 +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 1M2VuQ-0003BR-43; Fri, 08 May 2009 14:39:02 -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 1M2VuO-0003B4-0i for ding@lists.math.uh.edu; Fri, 08 May 2009 14:39:00 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1M2VuH-0006cC-Ub for ding@lists.math.uh.edu; Fri, 08 May 2009 14:38:59 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1M2Vuj-0002HN-00 for ; Fri, 08 May 2009 21:39:21 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M2VuF-0006H1-Ng for ding@gnus.org; Fri, 08 May 2009 19:38:51 +0000 Original-Received: from rpatterson.net ([69.12.174.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 May 2009 19:38:51 +0000 Original-Received: from me by rpatterson.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 May 2009 19:38:51 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: rpatterson.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.91 (gnu/linux) Cancel-Lock: sha1:0emEJSlSytof925L0A6UXYzjGd8= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68528 Archived-At: I have a small utility that uses emacsclient -e and inotify to have gnus check for new news in a group when the maildir behind the group changes. The actually backend is nnimap going through a local imap server, so gnus isn't actually manipulating the maildirs, just imap. The problem is that if emacsclient happens to call: (gnus-group-jump-to-group group) (gnus-group-get-new-news-this-group) while I'm exiting that group's summary buffer having changed any flags (such as removing a tick) then all the flags will be lost. Sometimes read articles will suddenly become unread. I would assume there is something that is being written during summary exit that is being interfered by gnus-group-get-new-news-this-group. I'd imagine there's some check I can do in my emacsclient call to avoid the clash but I don't have a clue where to start looking and there's *way* too much code to step through in the debugger. Can anyone help me get on the right track? Ross