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: Thu, 26 Sep 2019 12:34:43 -0700 Message-ID: <87ftkilulo.fsf@ericabrahamsen.net> References: <1s4l0zfafz.fsf@uninett.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="161301"; 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 Thu Sep 26 21:36:46 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 1iDZZG-000frg-Be for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Sep 2019 21:36:46 +0200 Original-Received: from localhost ([::1]:43770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDZZF-0000Le-6G for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Sep 2019 15:36:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54738) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDZXS-0007K8-KD for help-gnu-emacs@gnu.org; Thu, 26 Sep 2019 15:34:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDZXR-00045Y-K9 for help-gnu-emacs@gnu.org; Thu, 26 Sep 2019 15:34:54 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:41364 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 1iDZXR-0003o5-Gu for help-gnu-emacs@gnu.org; Thu, 26 Sep 2019 15:34:53 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 331F8FA028; Thu, 26 Sep 2019 19:34:45 +0000 (UTC) In-Reply-To: (Bob Newell's message of "Thu, 26 Sep 2019 07:59:11 -1000") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:121565 Archived-At: Bob Newell writes: > Aloha, > > "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" > > A brief look at the code tells me that indeed a search from > the topic level is non-recursive and specifically does not > recognize or descend into sub-topics. > > You could write your own code to accomplish this, although it > might be quite some little effort to do so. > > Sorry for the unhelpful response. Perhaps someone else knows a > way to accomplish this that I'm missing (short of installing > mairex or the like). It would indeed be a useful feature. > > One hackish solution might be to temporarily switch out of > topic mode and then search from the very top, but that would > likely give you a search domain much larger than you might > wish. There's the function `gnus-topic-find-groups' which takes a RECURSIVE option that will return all groups and subgroups. Maybe we should be using that to return valid groups for nnir search?