From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17596 invoked from network); 3 Mar 2022 19:38:28 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 3 Mar 2022 19:38:28 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nPrHO-009fe6-Gi for ml@inbox.vuxu.org; Thu, 03 Mar 2022 13:38:26 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1nPrHN-0056Cd-Vs for ml@inbox.vuxu.org; Thu, 03 Mar 2022 13:38:25 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nPrHL-0056CU-ML for ding@lists.math.uh.edu; Thu, 03 Mar 2022 13:38:23 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nPrHJ-009fdn-Cn for ding@lists.math.uh.edu; Thu, 03 Mar 2022 13:38:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=e6L+Z0IYeN6IDZnGm6zgGrwWPKpOo/lJa1Y48YmxjqQ=; b=aAz3ypyU5yjIDR2C9mo5YU1fnn Y0gf6GRNfbtaB35u5aFbyuQhdBZ38V4iTAvVoO67OXnT6D/ZhITRUSG3T6U1MqWpjCflHJz7GCUIb zGgDDS7SyACV0yEJatl252IOQLyZWQfi2ohAc25NtyNhlW4Cx0n4tW+uDHVSX+kdbbLk=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nPrHB-0003IK-TU for ding@gnus.org; Thu, 03 Mar 2022 20:38:16 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nPrHA-0001tC-0O for ding@gnus.org; Thu, 03 Mar 2022 20:38:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: nnvirtual groups and article warping Date: Thu, 03 Mar 2022 11:38:01 -0800 Message-ID: <8735jyygh2.fsf@ericabrahamsen.net> References: <87czj3x9gh.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:wLY3tKJYP+W8q+1lqZ8HmOwy3Zk= List-ID: Precedence: bulk Eric S Fraga writes: > Hello all, > > I use virtual groups to collect emails from a number of groups (all > nnml). When reading the virtual group, there are times where I would > like to jump to the originating group. In groups that are the result of > searches, I can do this with A W (gnus-warp-to-article). Is the same > functionality available with an nnvirtual group? (I haven't been able > to find it, if it exists.) It doesn't exist, but it wouldn't be too hard to write. Basically, nnvirtual would have to have a function called `nnvirtual-warp-to-article', which did something like: (let* ((gnus-override-method nil) (gnus-newsgroup-name (gnus-group-prefixed-name (car (nnvirtual-map-article (gnus-summary-article-number))))) (gnus-command-method (gnus-find-method-for-group gnus-newsgroup-name))) (when (gnus-check-backend-function 'warp-to-article (car gnus-command-method)) (funcall (gnus-get-function gnus-command-method 'warp-to-article)))) The weird thing, poking into the code, is that no backends seem to implement *-warp-to-article, except nnselect. Doesn't that seem weird? So this function would instead have to do pretty much what nnselect-warp-to-article does, namely: (deffoo nnvirtual-warp-to-article () (let* ((cur (if (> (gnus-summary-article-number) 0) (gnus-summary-article-number) (error "Can't warp to a pseudo-article"))) (group-art (nnvirtual-map-article cur))) (gnus-summary-read-group-1 (car group-art) t t nil nil (list (cdr group-art))))) Does that work?