From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.bugs Subject: bug#5656: 23.1; nntp-marks-file-name is reset to nil and causes "IO error reading [...]: Is a directory" Date: Sun, 28 Feb 2010 11:46:48 +0200 Message-ID: <87r5o5snef.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267350848 4403 80.91.229.12 (28 Feb 2010 09:54:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Feb 2010 09:54:08 +0000 (UTC) To: 5656@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 28 10:54:03 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NlfqN-0005Jx-7S for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Feb 2010 10:53:47 +0100 Original-Received: from localhost ([127.0.0.1]:48808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlfqM-0004Nu-NI for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Feb 2010 04:53:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nlfq6-0004KC-64 for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 04:53:30 -0500 Original-Received: from [140.186.70.92] (port=41767 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nlfq5-0004K0-4c for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 04:53:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nlfq3-0006sG-2B for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 04:53:29 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60309) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nlfq3-0006sC-0K for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 04:53:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nlfkp-0007PR-DV; Sun, 28 Feb 2010 04:48:03 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Teemu Likonen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Feb 2010 09:48:03 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5656 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.126735042428387 (code B ref -1); Sun, 28 Feb 2010 09:48:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Feb 2010 09:47:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nlfjr-0007No-SF for submit@debbugs.gnu.org; Sun, 28 Feb 2010 04:47:04 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nlfjp-0007NM-Em for submit@debbugs.gnu.org; Sun, 28 Feb 2010 04:47:02 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:39470 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nlfjm-0003bh-Hf for submit@debbugs.gnu.org; Sun, 28 Feb 2010 04:46:58 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nlfjk-0002fC-GD for submit@debbugs.gnu.org; Sun, 28 Feb 2010 04:46:58 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:53007) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nlfjk-0002ez-9V for submit@debbugs.gnu.org; Sun, 28 Feb 2010 04:46:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nlfjj-000370-Lz for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 04:46:55 -0500 Original-Received: from [140.186.70.92] (port=54306 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nlfji-00035y-1I for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 04:46:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nlfjg-0006Ql-TV for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 04:46:53 -0500 Original-Received: from mta-out.inet.fi ([195.156.147.13]:39131 helo=kirsi2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nlfjg-0006QJ-Jc for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 04:46:52 -0500 Original-Received: from mithlond.arda (84.251.132.215) by kirsi2.inet.fi (8.5.014) id 4B17EFA603B2C7A6 for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 11:46:50 +0200 Original-Received: from dtw by mithlond.arda with local (Exim 4.69) (envelope-from ) id 1Nlfjc-0001fs-G0 for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 11:46:48 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 28 Feb 2010 04:48:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35348 Archived-At: Using Gnus agent is not exactly a pleasant experience. I have pretty much the default settings and all my nntp servers are agentized. Now, in the Group buffer I go plugged (Jj), check new news (g), download them (Js) and go unplugged (Jj) again. Good, so far. Then I enter some group and read news. When exiting from the Summary buffer Gnus gives me ugly error messages (see below). I answered "yes" to the both questions and got back to Group buffer. --8<---------------cut here---------------start------------->8--- Error reading nntp marks file /home/dtw/News/marks/news.inet.fi/comp/os/linux/misc/ ((error IO error reading /home/dtw/News/marks/news.inet.fi/comp/os/linux/misc/: Is a directory)). Continuing will use marks from .newsrc.eld. Continue? (yes or no) Could not write to /home/dtw/News/marks/news.inet.fi/comp/os/linux/misc/ ((file-error Opening output file is a directory /home/dtw/News/marks/news.inet.fi/comp/os/linux/misc/)). Continue? (yes or no) --8<---------------cut here---------------end--------------->8--- The error happens in file lisp/gnus/nntp.el, function nntp-open-marks and form (condition-case ...). The reason for this error is that variable nntp-marks-file-name is nil. It _should_ be ".marks" but something sets it to nil when I go unplugged with Jj (gnus-agent-toggle-plugged) command. Since the variable is nil function nntp-group-pathname doesn't return complete path with filename but only the directory name, hence the error in trying to read the file: "error IO error reading [...]: Is a directory". So there's a bug somewhere. Who is setting nntp-marks-file-name to nil and why? Below is my work-around which automatically sets the file name back to ".marks": --8<---------------cut here---------------start------------->8--- (add-hook 'gnus-agent-unplugged-hook #'(lambda () (setq nntp-marks-file-name ".marks"))) --8<---------------cut here---------------end--------------->8---