info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG REPORT: nntp-marks-file-name is reset to nil and causes "error I


From: Teemu Likonen
Subject: Re: BUG REPORT: nntp-marks-file-name is reset to nil and causes "error IO error reading [...]: Is a directory"
Date: Tue, 18 Aug 2009 12:58:25 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

On 2009-08-17 12:10 (+0300), Teemu Likonen wrote:

> Here's more info: It's file lisp/gnus/nntp.el, function nntp-open-marks
> and form (condition-case ...) where the error happens.
>
> The reason for error is that variable nntp-marks-file-name is nil. It's
> normally ".marks" (in my system too) 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 a directory name, hence the error in reading
> the file: "error IO error reading [...]: Is a directory".
>
> Clearly there's a but somewhere. Who is setting nntp-marks-file-name to
> nil and why?

Here's a work-around hack to get rid of the error:

    (add-hook 'gnus-agent-unplugged-hook #'tl-gnus-agent-unplugged-hook)

    (defun tl-gnus-agent-unplugged-hook ()
      (setq nntp-marks-file-name (or nntp-marks-file-name
                                     ".marks")))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]