From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50558 Path: main.gmane.org!not-for-mail From: Kevin Greiner Newsgroups: gmane.emacs.gnus.general Subject: Re: Agent categories gone. Date: Tue, 04 Mar 2003 16:29:02 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: References: <86of4suzzl.fsf@i3d.home> <868yvww7fo.fsf@i3d.home> <86heaj9041.fsf@i3d.home> <86smu3z2d2.fsf@i3d.home> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046818545 12234 80.91.224.249 (4 Mar 2003 22:55:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 4 Mar 2003 22:55:45 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Tue Mar 04 23:55:41 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18qKvX-0001MH-00 for ; Tue, 04 Mar 2003 23:30:23 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18qKuo-0000RY-00; Tue, 04 Mar 2003 16:29:38 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 04 Mar 2003 16:30:37 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA01541 for ; Tue, 4 Mar 2003 16:30:24 -0600 (CST) Original-Received: (qmail 2643 invoked by alias); 4 Mar 2003 22:29:20 -0000 Original-Received: (qmail 2638 invoked from network); 4 Mar 2003 22:29:20 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 4 Mar 2003 22:29:20 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18qLDa-00065s-00 for ; Tue, 04 Mar 2003 23:49:02 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 77 Original-NNTP-Posting-Host: 198.64.160.72 Original-X-Trace: quimby.gnus.org 1046818142 23427 198.64.160.72 (4 Mar 2003 22:49:02 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 4 Mar 2003 22:49:02 GMT User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (windows-nt) Cancel-Lock: sha1:mYX9RpZCtqMNh29oebEFVN2vFAQ= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50558 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50558 Robert Epprecht writes: > Kevin Greiner writes: > >> Hmmm.... What's the value of gnus-agent-directory just before you >> executed (gnus-category-read)? > > gnus-agent-directory's value is "~/News/agent/" > >> 1) Start gnus as usual. >> 2) Load gnus-agent.el so that gnus-category-read isn't compiled. (M-x >> load-librarygnus-agent.el) >> 3) Set debug-on-signal (M-: (setq debug-on-signal t)) >> 4) Execute gnus-category-read (M-: (gnus-category-read)) > > This gives a *different* result (formatted by hand): > > ((header (agent-predicate . false)) > (all (agent-predicate . true) > (agent-groups "comp.lang.forth" "gnu.emacs.sources")) > (default (agent-predicate . high) > (agent-score-file . file))) > >> At this point, you should have been thrown into the debug buffer. > no > > Strange, very strange. This looks to me as if the compiled gnus-agent.elc > file would not correspond to the gnus-agent.el file. Hmm and I concur. The preceeding results are exactly what we would hope to see. > cd /usr/local/gnus > ./configure > > one output line makes me wonder if things go right: > checking where .elc files should go... $(datadir)/emacs/site-lisp > > make > > Despite the line shown above the *.elc files in /usr/local/gnus/lisp/ > do get rewritten. I actually have the misfortune of working on a MS box. It's been years since I worked with the configure script. Does ./configure delete all of the .elc files? If it doesn't, try deleting all of the gnus *.elc files then run make. > > restart emacs and gnus > Same result as before: Different output of (gnus-category-read) before > and after loading gnus-agent.el. I have double checked gnus-agent-directory. > It is the same in both cases. > > load-path's value is ("/usr/local/gnus/lisp" ... ) > ls -l /usr/local/gnus/lisp/gnus-agent.el* > [ ... ] 128524 Mar 4 06:10 /usr/local/gnus/lisp/gnus-agent.el > [ ... ] 93531 Mar 4 14:03 /usr/local/gnus/lisp/gnus-agent.elc > > I don't understand what's happening here. same here. You could try debugging the compiled code. You'll only be able to see function calls but that may be enough. For example, after returning from nnheader-insert-file-contents, the current buffer should contain the text in your categories file. Even more important, I believe that the first read statement is erroring so you should see the execution stack unwind up to the ignore-errors form. If you still have problems, I can create a new version of gnus-category-read that prints a message before every statement. Hopefully, that would help us isolate the problem to a single statement. Kevin