From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.help Subject: Re: Searching in Gnus: gnus-group-make-nnir-group does not recurse into subtopics Date: Fri, 27 Sep 2019 08:18:01 -1000 Organization: Avi Gobbler Publishing Message-ID: <878sq9li1y.fsf@bobnewell.net> References: <1s4l0zfafz.fsf@uninett.no> <87ftkilulo.fsf@ericabrahamsen.net> <87pnjmk2po.fsf@bobnewell.net> <1szhiqe02c.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="199220"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Eric Abrahamsen , "help-gnu-emacs@gnu.org" To: Vegard Vesterheim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 27 20:18:23 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 1iDuox-000peQ-9f for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Sep 2019 20:18:23 +0200 Original-Received: from localhost ([::1]:56076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDuov-0005ZP-Ch for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Sep 2019 14:18:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37639) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDuoh-0005Z6-2e for help-gnu-emacs@gnu.org; Fri, 27 Sep 2019 14:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDuof-0001Dl-Vb for help-gnu-emacs@gnu.org; Fri, 27 Sep 2019 14:18:06 -0400 Original-Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:42468) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDuof-0001CP-Kn for help-gnu-emacs@gnu.org; Fri, 27 Sep 2019 14:18:05 -0400 Original-Received: by mail-pl1-x641.google.com with SMTP id e5so1398258pls.9 for ; Fri, 27 Sep 2019 11:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version; bh=NYQhNOyVTi+oswZu0jHRll559qtINAzq5OKupPZrZ0M=; b=liKbnQD+KFLWVqVpTO0br+cL/7ZbspjUoKj/65xVvC8tevq5H81L3yVFrKYoHUAYY1 ImfhlKCZpjxZsKaskuAgGwNYhvFLjtTLGrQ4vzzCZ6WLg5CJdzTKsnHF9xioxhIXTfnX Nk0qFxfVnyXm084lpTRrrrMBS0i7x5FJ9SP/A9GFt1xCnu2D0w3pH5sQuFwy6GkJl7Wb prtoT3ic4TC7xLyDU3474hu5WyXXmK3D4BbRFjr3kEaUtVNqtK7ukm55A2kIqOdU+npX 0I/QCQqEyfsxKhuaKHeLiquR2yKhKf4U3d7RiDfXVWY2JQFBvw8ybuR4bQ0mUsocLZg7 ND3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=NYQhNOyVTi+oswZu0jHRll559qtINAzq5OKupPZrZ0M=; b=ffgW9iBWimHYSES6ODIvMAVdctkVDeC/I1AnKGXM+OyfXmEy5Av90wAwWyVgR1lGVN +vdGNazKHXOXRs/LopBQ3opAomTmMLVpJAvhbyYM28YXkFHMHUuui0r22M/nGi1/m8uk 8ij/AF9l7DDdRnn0Dh2D1vC9H2eZCdhdBmZngs4m7CCxcU1RNj+zwx+w5fpg2x2T1g3k OiMZ5ePHC+h9QVuL2agzhgqxRDWl4mCsCe57hjhfaGCLbj2CSJI6+MSvdhO9hBKHQz3c /8XnSCCDZdu3VJ+/crWu8Q7IV+9q+fkoaqn6JVq70rxbowol3sAoCkTIH+SV0jmX3u8R fmpA== X-Gm-Message-State: APjAAAWg0CT1Wmwm45LXnYkPhudLUQdxqHPUuFIysB1k5fAwXl37iCpi xDENMbnrexga+uH9WbVDVP622A== X-Google-Smtp-Source: APXvYqysue00qed41N6bK+9qHnP07IsNFQ/tDB7VqxAjtXeCJUy3+8c9uyE3w/jASJQ6b7O9ipsPSg== X-Received: by 2002:a17:902:222:: with SMTP id 31mr6284185plc.167.1569608284171; Fri, 27 Sep 2019 11:18:04 -0700 (PDT) Original-Received: from localhost ([2607:f278:410e:2:81ea:658e:137a:b723]) by smtp.gmail.com with ESMTPSA id q20sm5359873pfl.79.2019.09.27.11.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 11:18:02 -0700 (PDT) In-Reply-To: <1szhiqe02c.fsf@uninett.no> (Vegard Vesterheim's message of "Fri, 27 Sep 2019 06:15:05 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::641 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:121572 Archived-At: >>>> "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. -- Bob Newell Honolulu, Hawai`i * Via Gnus/BBDB/Org/Emacs/Linux *