From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50571 Path: main.gmane.org!not-for-mail From: Kevin Greiner Newsgroups: gmane.emacs.gnus.general Subject: Re: Agent categories gone. Date: Wed, 05 Mar 2003 11:18:27 -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> <86u1eh968j.fsf@i3d.home> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1046884786 3691 80.91.224.249 (5 Mar 2003 17:19:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2003 17:19:46 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Wed Mar 05 18:19:45 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 18qcXr-0000uA-00 for ; Wed, 05 Mar 2003 18:19:07 +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 18qcXr-0003ob-00; Wed, 05 Mar 2003 11:19:07 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 05 Mar 2003 11:20:07 -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 LAA03552 for ; Wed, 5 Mar 2003 11:19:52 -0600 (CST) Original-Received: (qmail 3641 invoked by alias); 5 Mar 2003 17:18:48 -0000 Original-Received: (qmail 3635 invoked from network); 5 Mar 2003 17:18:48 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 5 Mar 2003 17:18:48 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18qcqx-0008DO-00 for ; Wed, 05 Mar 2003 18:38:51 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 142 Original-NNTP-Posting-Host: h-66-134-21-50.hstqtx02.covad.net Original-X-Trace: quimby.gnus.org 1046885930 31581 66.134.21.50 (5 Mar 2003 17:38:50 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 5 Mar 2003 17:38:50 GMT User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (windows-nt) Cancel-Lock: sha1:CdvoC88RfaVj98De3DU7jTZgN5c= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50571 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50571 Robert Epprecht writes: > Kevin Greiner writes: > >> try deleting all of the gnus *.elc files then run make. > > That didn't change anything. > >> You could try debugging the compiled code. > > OK, I did try (after some RTFM, as I never used the Lisp debugger before). > Please take everything I say as coming from an absolute newbie in this > roam... I give you the details of what I did, just in case I did something > stupid: For a newbie with the debugger, you did a fabulous job. I'm at work right now so I can't pursue this just now. I did want to let you know that your stack trace identified the problem as the mapcar* statement. If you look at the stack trace below, the mapcar* line is immediately followed by lines that select then kill the temp buffer. Those statements were created by the with-temp-buffer macro so this indicates that mapcar* threw an error that is now unwinding the execution stack. OK, let's see... mapcar* is part of cl and RMS, as I was recently informed :), doesn't approve of using run-time cl (In fact, that IS the problem. The (require 'cl) in gnus-agent is wrapped up in a eval-when-compile form so the cl package hasn't been loaded and mapcar* is undefined). That doesn't explain why it is defined for me but... so what. I'll write a replacement expression later today. Kevin > cvs update, removing all *,.elc files, calling ./configure and make, then: > > emacs -f gnus > M-x debug-on-entry gnus-category-read > M-: (gnus-category-read) > > I always paste the line that the point is on, > press 'd' and give the 'returning value' (If any). > (please excuse the long lines). > > * gnus-category-read() > > * (byte-code "ÂÃÄ!!ŎrqˆÆÇȏ+† > > * generate-new-buffer-name(" *temp*") > generate-new-buffer-name(" *temp*") returning value: " *temp*" > * get-buffer-create(" *temp*") > get-buffer-create(" *temp*") returning value: # > > * (byte-code "ÃÄÅ\"!ˆebˆÆp!ÇÈɏ‰ƒ > > * nnheader-concat("~/News/agent/" "lib/categories") > * file-name-as-directory("~/News/agent/") > file-name-as-directory("~/News/agent/") returning value: "~/News/agent/" > * apply(concat "~/News/agent/" ("lib/categories")) > * concat("~/News/agent/" "lib/categories") > concat("~/News/agent/" "lib/categories") > returning value: "~/News/agent/lib/categories" > apply(concat "~/News/agent/" "lib/categories") returning value: "~/News/agent/lib/categories" > nnheader-concat("~/News/agent/" "lib/categories") returning value: "~/News/agent/lib/categories" > * nnheader-insert-file-contents("~/News/agent/lib/categories") > * mm-insert-file-contents("~/News/agent/lib/categories" nil nil nil nil) > * mm-auto-mode-alist() > mm-auto-mode-alist() returning value: (("\\.~?[0-9]+\\.[0-9][-.0-9]*~?\\'" ignore t)) > * insert-file-contents("~/News/agent/lib/categories" nil nil nil nil) > > ' *temp*' looks like this now: > ((header false nil nil) (all true nil ("comp.lang.forth" "gnu.emacs.sources")) (default high file nil)) > > * format-decode(nil 103 nil) > * buffer-modified-p() > buffer-modified-p() returning value: t > * (set-buffer-modified-p mod) > set-buffer-modified-p(t) returning value: t > format-decode(nil 103 nil) returning value: 103 > insert-file-contents("~/News/agent/lib/categories" nil nil nil nil) > returning value: ("/home/m/News/agent/lib/categories" 103) > mm-insert-file-contents("~/News/agent/lib/categories" nil nil nil nil) > returning value: ("/home/m/News/agent/lib/categories" 103) > nnheader-insert-file-contents("~/News/agent/lib/categories") > returning value: ("/home/m/News/agent/lib/categories" 103) > * read(#) > read(#) > returning value: ((header false nil nil) (all true nil ("comp.lang.forth" "gnu.emacs.sources")) (default high file nil)) > * (byte-code "Ap!\207" [read] 2) > * read(#) > > * mapcar(#[(c) "ÁÂÃÄAÅ#\"¡ˆ‡" [c delq nil mapcar* #[... "… > > * #[(c) "ÁÂÃÄAÅ#\"¡ˆ‡" [c delq nil mapcar* #[... "… > > * mapcar*(#[(valu symb) "… > > * (byte-code "Á!ƒ\n > * buffer-name(#) > buffer-name(#) returning value: " *temp*" > * kill-buffer(#) > * run-hooks(kill-buffer-hook) > * register-swap-out() > register-swap-out() returning value: nil > run-hooks(kill-buffer-hook) returning value: nil > kill-buffer(#) returning value: t > byte-code("Á!ƒ\n > returning value: buffer-name > > byte-code("ÂÃÄ!!ŎrqˆÆÇȏ+† > returning value: ((default (agent-predicate . false))) > > gnus-category-read() > returning value: ((default (agent-predicate . false))) > > * prin1(((default (agent-predicate . false))) t) > prin1(((default (agent-predicate . false))) t) > returning value: ((default (agent-predicate . false))) > > * run-hooks(post-command-hook) > * gnus-undo-boundary() > gnus-undo-boundary() returning value: t > run-hooks(post-command-hook) returning value: nil > * (mode-line-mode-name) > * (normal-top-level) > [ ... ] > > > I hope that gives you some clues! > (I interpret the lines given below the ones the cursor is at as a kind of > 'nesting stack' or similar. I hope you can guess that from context). > > > BTW: As a Lisp newbie I'm a bit surprised. Does this mean, that byte > compiled Lisp can give different results than interpreted one? (I hope > the term 'interpreted' is right in Lisp) Is this normal or a bug of the > compiler? > > Robert Epprecht