From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63282 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: gnus-agent bug? Date: Tue, 30 May 2006 16:28:59 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148974731 5673 80.91.229.2 (30 May 2006 07:38:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 07:38:51 +0000 (UTC) Original-X-From: ding-owner+m11809@lists.math.uh.edu Tue May 30 09:38:48 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 1FkyoO-0002kT-ON for ding-account@gmane.org; Tue, 30 May 2006 09:38:45 +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 1Fkyo6-0007oE-00; Tue, 30 May 2006 02:38:26 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FkyfB-0007o9-00 for ding@lists.math.uh.edu; Tue, 30 May 2006 02:29:13 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1Fkyf7-0004gv-6V for ding@lists.math.uh.edu; Tue, 30 May 2006 02:29:12 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Fkyf6-0004kS-00 for ; Tue, 30 May 2006 09:29:08 +0200 Original-Received: from [205.234.185.198] (port=48447 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1Fkyfb-0004pl-Iw for ding@gnus.org; Tue, 30 May 2006 02:29:41 -0500 Original-To: ding@gnus.org X-Hashcash: 1:20:060530:ding@gnus.org::iiofd0xWlE55HSU6:00001O1K X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:wiWzHrVl5fPy2vGG2ICdpXxuzjQ= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63282 Archived-At: Hi, I noticed gnus-agent causes an error when a new newsgroup was created. I'm using latest Gnus from the CVS trunk with: (setq gnus-subscribe-newsgroup-method 'gnus-subscribe-hierarchically) I've verified that the error can be reproduced by this way: Login to the INN news server that I maintain, create a newsgroup using the command `ctlinnd newgroup local.testing', and then start Gnus with no option in the client machine. I got: Debugger entered--Lisp error: (file-error "Opening directory"\ "no such file or directory"\ "/home/yamaoka/News/agent/nntp/ganews/local/testing") At that time, the news server has no article in that group, and (gnus-get-info "local.testing") returns ("local.testing" 3 nil). I've also verified that such an error doesn't happen with the v5-10 branch. Here's a full backtrace: Debugger entered--Lisp error: (file-error "Opening directory" "no such file or directory" "/home/yamaoka/News/agent/nntp/ganews/local/testing") directory-files-and-attributes("/home/yamaoka/News/agent/nntp/ganews/local/testing" nil "^[0-9]+$" t) (let* (alist (file-attributes ...)) (while file-attributes (let* ... ...)) alist) (condition-case nil (progn (nnheader-insert-file-contents file) (goto-char ...) (let ... ... ... alist)) ((end-of-file file-error) (let* ... ... alist))) (save-current-buffer (set-buffer temp-buffer) (condition-case nil (progn ... ... ...) (... ...))) (with-current-buffer temp-buffer (condition-case nil (progn ... ... ...) (... ...))) (unwind-protect (with-current-buffer temp-buffer (condition-case nil ... ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) (let ((temp-buffer ...)) (unwind-protect (with-current-buffer temp-buffer ...) (and ... ...))) (with-temp-buffer (condition-case nil (progn ... ... ...) (... ...))) gnus-agent-read-agentview("/home/yamaoka/News/agent/nntp/ganews/local/testing/.agentview") gnus-cache-file-contents("/home/yamaoka/News/agent/nntp/ganews/local/testing/.agentview" gnus-agent-file-loading-cache gnus-agent-read-agentview) (setq gnus-agent-article-alist (gnus-cache-file-contents (gnus-agent-article-name ".agentview" group) (quote gnus-agent-file-loading-cache) (quote gnus-agent-read-agentview))) (let ((gnus-agent-read-agentview group)) (setq gnus-agent-article-alist (gnus-cache-file-contents ... ... ...))) gnus-agent-load-alist("local.testing") (let* ((gnus-agent-article-alist gnus-agent-article-alist) (gnus-agent-file-loading-cache gnus-agent-file-loading-cache) (alist ...)) (when alist (setq minmax ...) (gnus-agent-set-local group ... ... gmane gnus-command-method local))) (if minmax nil (let* (... ... ...) (when alist ... ...))) (unless minmax (let* (... ... ...) (when alist ... ...))) (let* ((gmane ...) (gnus-command-method ...) (local ...) (symb ...) (minmax ...)) (unless minmax (let* ... ...)) minmax) gnus-agent-get-local("local.testing") (let* ((local ...) (active-min ...) (active-max ...) (agent-min ...) (agent-max ...)) (when (< agent-min active-min) (setcar active agent-min)) (when (> agent-max active-max) (setcdr active agent-max)) (when (and info ...) (let ... ...) (gnus-agent-set-local group agent-min ...))) (progn (let* (... ... ... ... ...) (when ... ...) (when ... ...) (when ... ... ...))) (if (gnus-agent-method-p gnus-command-method) (progn (let* ... ... ... ...))) (when (gnus-agent-method-p gnus-command-method) (let* (... ... ... ... ...) (when ... ...) (when ... ...) (when ... ... ...))) (let* ((gnus-command-method ...)) (when (gnus-agent-method-p gnus-command-method) (let* ... ... ... ...))) gnus-agent-possibly-alter-active("local.testing" (1 . 0) ("local.testing" 3 nil)) gnus-get-unread-articles(nil) gnus-setup-news(nil nil nil) byte-code("...snip..." [dont-connect did-connect gnus-startup-file gnus-current-startup-file gnus-slave gnus-use-dribble-file gnus-group-quit gnus-run-hooks gnus-startup-hook gnus-make-newsrc-file gnus-dribble-read-file gnus-request-create-group "queue" (nndraft "") "drafts" (nndraft "") gnus-setup-news nil gnus-setup-news-hook gnus-start-draft-setup gnus-group-list-groups gnus-group-first-unread-group gnus-configure-windows group gnus-group-set-mode-line gnus-started-hook gnus-agent level] 4) gnus-1(nil nil nil) gnus(nil) call-interactively(gnus) execute-extended-command(nil) call-interactively(execute-extended-command)