From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63584 Path: news.gmane.org!not-for-mail From: Andreas Seltenreich Newsgroups: gmane.emacs.gnus.general Subject: The Agent vs. gnus-find-method-for-group (was: backporting bugfixes to the v5-10 branch) Date: Wed, 23 Aug 2006 09:20:55 +0200 Message-ID: <873bbnnciw.fsf@gate450.dyndns.org> References: <87wtajwzjk.fsf@gate450.dyndns.org> <87wta86vzr.fsf@gate450.dyndns.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156317954 11597 80.91.229.2 (23 Aug 2006 07:25:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Aug 2006 07:25:54 +0000 (UTC) Cc: Kevin Greiner Original-X-From: ding-owner+m12111@lists.math.uh.edu Wed Aug 23 09:25:52 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFn7T-0006oj-3T for ding-account@gmane.org; Wed, 23 Aug 2006 09:25:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1GFn7J-0003jo-00; Wed, 23 Aug 2006 02:25:37 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1GFn2s-0003jg-00 for ding@lists.math.uh.edu; Wed, 23 Aug 2006 02:21:02 -0500 Original-Received: from quimby.gnus.org ([80.91.227.211]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1GFn2p-0005Jf-8v for ding@lists.math.uh.edu; Wed, 23 Aug 2006 02:21:02 -0500 Original-Received: from smtp1.rz.uni-karlsruhe.de ([129.13.185.217] ident=Debian-exim) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GFn2n-0001m0-00 for ; Wed, 23 Aug 2006 09:20:57 +0200 Original-Received: from rzstud2.stud.uni-karlsruhe.de (exim@rzstud2.stud.uni-karlsruhe.de [193.196.41.38]) by smtp1.rz.uni-karlsruhe.de with esmtp (Exim 4.50 #1) id 1GFn2n-0000Ml-P9; Wed, 23 Aug 2006 09:20:57 +0200 Original-Received: from uwi7 by rzstud2.stud.uni-karlsruhe.de with local (Exim 4.43) id 1GFn2n-0001dA-9n; Wed, 23 Aug 2006 09:20:57 +0200 Original-To: ding@gnus.org X-Face: $:F<87a[gD1?#R6S3j21cr1&C&7bd63GHC.tSdskUb}hhwG(ci*=D5kJ<_N+p9q(7-,PnG. Et.Yh Andreas Seltenreich writes: > Btw, testing with the agent enabled revealed two places where > g-f-m-f-g is called on groups after their prefix has been stripped, > causing the native method to be returned. I don't think this is > intentional, is it? I didn't dig very deep into this, and am far from understanding how the agent does its magic, but nevertheless some updates: > Debugger entered: ("g-f-m-f-g called on unknown group") > [...] > gnus-find-method-for-group("mailings.pgsql.general") > gnus-agent-get-local("mailings.pgsql.general") > gnus-agent-possibly-alter-active("mailings.pgsql.general" (1 . 6325)) > gnus-agent-regenerate-group("nnpg+lists:mailings.pgsql.general" nil) > gnus-agent-regenerate(nil) > call-interactively(gnus-agent-regenerate) > execute-extended-command(nil) > call-interactively(execute-extended-command) ISTM this causes the agent to look for the group's data in the native method's directory (via gnus-agent-load-local). There seems to be provision for passing the method as separate argument to gnus-agent-get-local to avoid a call to g-f-m-f-g on prefix-stripped groups in both, v5-10 and trunk: --8<---------------cut here---------------start------------->8--- 2004-10-18 Kevin Greiner * gnus-agent.el [...] [...] (gnus-agent-get-local): Add optional parameters to avoid calling gnus-group-real-name and gnus-find-method-for-group. --8<---------------cut here---------------end--------------->8--- Maybe gnus-command-method should be passed as a third argument in gnus-agent-possibly-alter-active? Curiously, I'm unable to observe any adverse effects when regenerating groups or moving/copying articles, so maybe I'm missing something... Thanks, andreas