Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: info-gnus-english@gnu.org
Subject: Re: Misbehaving gnus-gcc-mark-as-read while archiving to current group
Date: Wed, 06 Aug 2014 00:41:53 +0200	[thread overview]
Message-ID: <871tsupnim.fsf@debian.uxu> (raw)
In-Reply-To: <86fvhbkktq.fsf@gmail.com>

Carlos Pita <carlosjosepita@gmail.com> writes:

> ... But then there are a lot of quirks I'm not sure
> what to do about. Say I reply a message in "micro2"
> group. My reply is indeed archived to "micro2"...

I don't use exactly your setup - I have:

(setq gnus-gcc-mark-as-read t)
(setq gnus-message-archive-group '("nnml:mail.sent"))

> ... but in the summaries buffer:
> 1. At first the sent reply is not shown at all.

Did you enter the archive group from the group buffer
or did you just change buffer to the summary buffer
like between any other pair buffers? If you just
changed buffer to the summary, it'll be the same
summary as you left it.

> 2. If I press /N, then the reply is shown

Yes, that makes sense:
gnus-summary-insert-new-articles to refresh/update.

> but as unread.

What mark do they have? Mine has `O', which reads:

    Articles that were marked as read in previous
    sessions and are now "old" (`gnus-ancient-mark').

I.e., technically, they are "read".

> 3. If I press M-g, then the reply is shown read.

Yes, M-g is gnus-summary-rescan-group which ends with
gnus-summary-select-article if you check out the code.
So, M-g doesn't change the mark of the post per se - it
shows the posts, so the mark gets changed along the way.

> Is this a bug? In any case, it seems a very
> misleading behavior to me.

I don't think it is a bug, it is rather Gnus can be all
over the place sometimes. What happens at place A
doesn't show at place B because B is just a buffer
showing stuff and less no one tells it it should
refresh it doesn't. I myself haven't found a good way
to consistently have everything in synch - do tell, if
anyone knows. Everything that changes the state should
trigger the refresh of all Gnus buffers, I think.

I have lots of glue to achieve an imperfect
implementation of that idea, e.g., when you exit from a
summary buffer, whatever you did there should be
visible in the Group buffer - this wouldn't do with
hooks so I wrote:

(defun gnus-summary-exit-and-update-group ()
  (interactive)
  (gnus-summary-save-newsrc t) ; FORCE
  (kill-buffer)
  (gnus-group-refresh) )

where the last line does that for my configuration (it
is not a standard Gnus function).

But even that isn't good as the ultimate would be
"global Gnus" + newsrc file consistency immediately on
the change of mark for a single post. That I'd like -
everywhere!
  
-- 
underground experts united

  reply	other threads:[~2014-08-05 22:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-05 15:38 Carlos Pita
2014-08-05 22:41 ` Emanuel Berg [this message]
2014-08-12 16:28   ` Carlos Pita
2014-08-12 17:11     ` Emanuel Berg
2014-08-12 22:02       ` Carlos Pita
2014-08-12 22:25         ` Emanuel Berg

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=871tsupnim.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=info-gnus-english@gnu.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).