From: Antoine Levitt <antoine.levitt@gmail.com>
To: ding@gnus.org
Subject: Re: Virtual groups weirdness
Date: Wed, 11 May 2011 13:07:49 +0200 [thread overview]
Message-ID: <87mxit5wca.fsf@gmail.com> (raw)
In-Reply-To: <87tyd17enk.fsf@gmail.com>
11/05/11 11:46, Antoine Levitt
> I'm trying to use virtual groups so as to have an "inbox+sent mail"
> group (both on nnimap). Doing so I get what I can only describe as
> erratic behaviour.
>
> I did G V and edited the regexp to INBOX\\|Sent. Then I quit gnus and
> run it again, and try to open the new virtual group. I get prompted with
> how many messages I want to get, enter some value, and then not only do
> I not get the summary buffer, but the group's unread count goes to the
> total number of messages in both groups - even though I have no unread
> messages.
>
> The log says
>
> Retrieving newsgroup: nnvirtual:inbox+sent...
> Fetching headers for nnvirtual:inbox+sent...done
> Making sparse threads...done
> No unread news
>
> This is on a blank .gnus.
So yeah, I'm a moron. The virtual group was matching itself, producing
weird behaviour. There could be a check for that, though.
I tried the following fix, but it doesn't work because
nnvirtual-current-group is nil. Any other way to get this information?
=== modified file 'lisp/gnus/nnvirtual.el'
--- lisp/gnus/nnvirtual.el 2011-01-25 04:08:28 +0000
+++ lisp/gnus/nnvirtual.el 2011-05-11 11:03:06 +0000
@@ -236,8 +236,13 @@
;; Go through the newsrc alist and find all component groups.
(let ((newsrc (cdr gnus-newsrc-alist))
group)
(while (setq group (car (pop newsrc)))
- (when (string-match nnvirtual-component-regexp group) ; Match
+ (when (and (string-match nnvirtual-component-regexp group) ; Match
+ (not (equal group nnvirtual-current-group)))
;; Add this group to the list of component groups.
(setq nnvirtual-component-groups
(cons group (delete group nnvirtual-component-groups)))))))
next prev parent reply other threads:[~2011-05-11 11:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-11 9:46 Antoine Levitt
2011-05-11 11:07 ` Antoine Levitt [this message]
2011-05-11 21:43 ` Ted Zlatanov
2011-05-12 9:59 ` Antoine Levitt
2011-05-12 12:58 ` Ted Zlatanov
2011-05-30 19:49 ` Lars Magne Ingebrigtsen
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=87mxit5wca.fsf@gmail.com \
--to=antoine.levitt@gmail.com \
--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).