unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5656: 23.1; nntp-marks-file-name is reset to nil and causes "IO error reading [...]: Is a directory"
@ 2010-02-28  9:46 Teemu Likonen
  2010-02-28 10:55 ` Andreas Schwab
  0 siblings, 1 reply; 6+ messages in thread
From: Teemu Likonen @ 2010-02-28  9:46 UTC (permalink / raw)
  To: 5656

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---







^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#5656: 23.1; nntp-marks-file-name is reset to nil and causes "IO error reading [...]: Is a directory"
  2010-02-28  9:46 bug#5656: 23.1; nntp-marks-file-name is reset to nil and causes "IO error reading [...]: Is a directory" Teemu Likonen
@ 2010-02-28 10:55 ` Andreas Schwab
  2010-02-28 11:27   ` Teemu Likonen
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2010-02-28 10:55 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: 5656

Teemu Likonen <tlikonen@iki.fi> writes:

> So there's a bug somewhere. Who is setting nntp-marks-file-name to nil
> and why?

nntp-marks-file-name is a backend variable.  Look in
nnoo-definition-alist whether it is modified by some backend.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#5656: 23.1; nntp-marks-file-name is reset to nil and causes "IO error reading [...]: Is a directory"
  2010-02-28 10:55 ` Andreas Schwab
@ 2010-02-28 11:27   ` Teemu Likonen
  2010-09-07 23:12     ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Teemu Likonen @ 2010-02-28 11:27 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 5656

* 2010-02-28 11:55 (+0100), Andreas Schwab wrote:

> Teemu Likonen <tlikonen@iki.fi> writes:
>> So there's a bug somewhere. Who is setting nntp-marks-file-name to
>> nil and why?
>
> nntp-marks-file-name is a backend variable.  Look in
> nnoo-definition-alist whether it is modified by some backend.

In nnoo-definition-alist there is this:

    (nntp nil
          (...
           (nntp-marks-file-name . ".marks")
           ...))

The variable is not mentioned in any other parts of
nnoo-definition-alist. Still nntp-marks-file-name gets set to nil and I
get the error unless I use the work-around hook which I described in the
original report.






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#5656: 23.1; nntp-marks-file-name is reset to nil and causes "IO error reading [...]: Is a directory"
  2010-02-28 11:27   ` Teemu Likonen
@ 2010-09-07 23:12     ` Glenn Morris
  2010-09-08  3:09       ` Teemu Likonen
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2010-09-07 23:12 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: 5656


So can this be closed in light of 

http://thread.gmane.org/gmane.emacs.gnus.general/70265/focus=70291

?


In any case, it's a purely Gnus problem, and I don't know if Gnus is
uisng this tracker.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#5656: 23.1; nntp-marks-file-name is reset to nil and causes "IO error reading [...]: Is a directory"
  2010-09-07 23:12     ` Glenn Morris
@ 2010-09-08  3:09       ` Teemu Likonen
  2010-09-08  7:10         ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Teemu Likonen @ 2010-09-08  3:09 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 5656

* 2010-09-07 19:12 (-0400), Glenn Morris wrote:

> So can this be closed in light of 
>
> http://thread.gmane.org/gmane.emacs.gnus.general/70265/focus=70291

Maybe, but haven't actually tried the upstream Gnus code.

> In any case, it's a purely Gnus problem, and I don't know if Gnus is
> uisng this tracker.

I reported the problem to Gnus bugs mailing list first but it never got
any (public) attention. It seems that neither of my reports weren't of
much use. Lars just happened to find the bug by other means.

The ending seems to be happy, though. :-)





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#5656: 23.1; nntp-marks-file-name is reset to nil and causes "IO error reading [...]: Is a directory"
  2010-09-08  3:09       ` Teemu Likonen
@ 2010-09-08  7:10         ` Glenn Morris
  0 siblings, 0 replies; 6+ messages in thread
From: Glenn Morris @ 2010-09-08  7:10 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: 5656

Teemu Likonen wrote:

>> http://thread.gmane.org/gmane.emacs.gnus.general/70265/focus=70291
>
> Maybe, but haven't actually tried the upstream Gnus code.

The change is also in Emacs since 2010-09-01.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-09-08  7:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-28  9:46 bug#5656: 23.1; nntp-marks-file-name is reset to nil and causes "IO error reading [...]: Is a directory" Teemu Likonen
2010-02-28 10:55 ` Andreas Schwab
2010-02-28 11:27   ` Teemu Likonen
2010-09-07 23:12     ` Glenn Morris
2010-09-08  3:09       ` Teemu Likonen
2010-09-08  7:10         ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).