Gnus development mailing list
 help / color / mirror / Atom feed
From: Ross Patterson <me@rpatterson.net>
To: ding@gnus.org
Subject: emacsclient interactions with exiting a summary
Date: Fri, 08 May 2009 12:38:35 -0700	[thread overview]
Message-ID: <87skjf2xms.fsf@transitory.lefae.org> (raw)

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




                 reply	other threads:[~2009-05-08 19:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87skjf2xms.fsf@transitory.lefae.org \
    --to=me@rpatterson.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).