From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Searching in Gnus: gnus-group-make-nnir-group does not recurse into subtopics Date: Fri, 27 Sep 2019 17:02:28 -0700 Message-ID: <87wodtnv8r.fsf@ericabrahamsen.net> References: <1s4l0zfafz.fsf@uninett.no> <87ftkilulo.fsf@ericabrahamsen.net> <87pnjmk2po.fsf@bobnewell.net> <1szhiqe02c.fsf@uninett.no> <878sq9li1y.fsf@bobnewell.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="260645"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: "help-gnu-emacs@gnu.org" , Vegard Vesterheim To: Bob Newell Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 28 02:02:53 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iE0CL-0015iA-Gt for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Sep 2019 02:02:53 +0200 Original-Received: from localhost ([::1]:58468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iE0CK-0006mc-8N for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Sep 2019 20:02:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52811) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iE0C7-0006mE-Aj for help-gnu-emacs@gnu.org; Fri, 27 Sep 2019 20:02:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iE0C6-00034o-Ac for help-gnu-emacs@gnu.org; Fri, 27 Sep 2019 20:02:39 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:54814 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iE0C6-0002zB-6x for help-gnu-emacs@gnu.org; Fri, 27 Sep 2019 20:02:38 -0400 Original-Received: from localhost (67-40-27-198.tukw.qwest.net [67.40.27.198]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 9297BFA027; Sat, 28 Sep 2019 00:02:29 +0000 (UTC) In-Reply-To: <878sq9li1y.fsf@bobnewell.net> (Bob Newell's message of "Fri, 27 Sep 2019 08:18:01 -1000") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 52.70.2.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121576 Archived-At: Bob Newell writes: >>>>> "When I initiate a search (gnus-group-make-nnir-group) with the >>>>> cursor on a topic, only the immediate subtopics are searched, >>>>> the topic hierarchy is not traversed recursively" >>> >>> Ah, there's a simple answer as it turns out. Position the >>> cursor to the top of the hierarchy of interest (the topic >>> line). Press # and every visible group in the topic hierarchy >>> gets marked. A subsequent G G searches all the marked >>> groups. Remove the marks with M U. >> >> Although it does not solve my problem completely, this is a useful >> tip. Thanks. > > Where does it fall short? By the way, with a little more > experimentation I found that non-visible groups in the > hierarchy also get (non-visibly) marked and searched, so this > may actually be much closer to what you wanted. > >> The function `gnus-topic-find-groups' looks promising. I did some > > I took a lot at that too and had to write a little function to > parse the output. It returns rather too much information > including many duplicate group records. And translating the > de-duped list into a search is a problem I didn't take on, > once I found out that marking was a better way. Apparently Lars has put some sort of fix for this into master -- if anyone's running master, give it a shot.