From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vida =?UTF-8?Q?G=C3=A1bor?= Newsgroups: gmane.emacs.bugs Subject: bug#19701: 24.3; directory-files platform-dependent behaviour when directory doesn't exist Date: Wed, 28 Jan 2015 12:45:53 +0100 Message-ID: References: <8361bsoxez.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422448942 25905 80.91.229.3 (28 Jan 2015 12:42:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 12:42:22 +0000 (UTC) Cc: 19701-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 28 13:42:17 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGRwk-0002HR-UL for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jan 2015 13:42:15 +0100 Original-Received: from localhost ([::1]:53026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGRwj-0003Q5-Td for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jan 2015 07:42:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGRwc-0003PN-Cg for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 07:42:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGRwZ-0003go-4m for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 07:42:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGRwZ-0003gk-1c for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 07:42:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YGRwY-0002mr-9B for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 07:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vida =?UTF-8?Q?G=C3=A1bor?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jan 2015 12:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19701 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19701-done@debbugs.gnu.org id=D19701.142244889310671 (code D ref 19701); Wed, 28 Jan 2015 12:42:02 +0000 Original-Received: (at 19701-done) by debbugs.gnu.org; 28 Jan 2015 12:41:33 +0000 Original-Received: from localhost ([127.0.0.1]:58537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGRw4-0002m2-VE for submit@debbugs.gnu.org; Wed, 28 Jan 2015 07:41:33 -0500 Original-Received: from mail-wg0-f41.google.com ([74.125.82.41]:36984) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGRw1-0002ln-Rb for 19701-done@debbugs.gnu.org; Wed, 28 Jan 2015 07:41:31 -0500 Original-Received: by mail-wg0-f41.google.com with SMTP id a1so20361817wgh.0 for <19701-done@debbugs.gnu.org>; Wed, 28 Jan 2015 04:41:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=cWafcTLw4Tu2uoUa2TVCSZb4W1SPHfKaHdS4K3+VKEE=; b=eu1S3FlulX7WpGspQ+J65a/4//02VX3zDG7hkCDZcxHfvjxZ1ueDM7wQ0MU4H2qLEg Jlwpv1HhZDzu3BcG75V/kbR83ObYaysGxKiHDly4tx8un6rN3xNMQYmkDvPWWeWXvUSH inXjMKbGJOjhKgHIEaYCFnDclCCVSH6HokPtClpuZ/StPROS8CEVQd/q/b/Lk2YkBg2q LRyfxI/b7OhACdiZuLNe3/5RGduHZ6sBk/pi6d0Mu7fv26T5I4EkS4QZRkveNF9Pkadt tADh/D67PBaqtVgZclDjBYpR/feelgSM3qZJ8UiAiAtNWdCmcG62qWnF94bwQwfKLBZ3 7Ikg== X-Received: by 10.194.173.233 with SMTP id bn9mr6862853wjc.123.1422448884026; Wed, 28 Jan 2015 04:41:24 -0800 (PST) Original-Received: from nedu.dnsdynamic.net (82.131.246.23.pool.invitel.hu. [82.131.246.23]) by mx.google.com with ESMTPSA id dc1sm2636317wib.18.2015.01.28.04.41.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Jan 2015 04:41:23 -0800 (PST) Original-Received: from elx4vv1q12 (localhost [127.0.0.1]) by nedu.dnsdynamic.net (Postfix) with ESMTP id 8654366193B; Wed, 28 Jan 2015 13:41:20 +0100 (CET) In-Reply-To: <8361bsoxez.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 27 Jan 2015 21:07:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98830 Archived-At: > This was never a problem, though. What exactly does Gnus do that this > subtlety gets in the way? I'm migrating from Windows to GNU/Linux, and while I'm doing this Gnus didn= 't start properly with my old configuration. I use %F in gnus-group-line-format, whi= ch ends up calling gnus-total-fetched-for. This function calculates the total amount o= f disk space used by cache and agent. I use Gnus agent but don't use cache (gnus-u= se-cache is nil). Later, gnus-cache-update-file-total-fetched-for iterates over the files tha= t belong to the cahe of the group. This list in nil on Windows, so I had no problem,= but on GNU/Linux, it raises an error, because I have no cache directory. I replaced some parts of the call stack below with ellipsis. Debugger entered--Lisp error: (file-error "Opening directory" "no such file= or directory" "/home/evidgbo/config/emacs.d/gnus-cache/nntp+gmane:gmane.an= nounce") directory-files("/home/evidgbo/config/emacs.d/gnus-cache/nntp+gmane:gmane= .announce" t nil t) gnus-cache-update-file-total-fetched-for("nntp+gmane:gmane.announce" nil) gnus-cache-total-fetched-for("nntp+gmane:gmane.announce") gnus-total-fetched-for("nntp+gmane:gmane.announce") (format " %5s U, %3d T, %3d D, %s L:%d %s %s\n" gnus-tmp-number-of-un= read (gnus-range-length (cdr (assq (quote tick) gnus-tmp-marked))) (gnus-ra= nge-length (cdr (assq (quote dormant) gnus-tmp-marked))) (gnus-total-fetche= d-for gnus-tmp-group) gnus-tmp-level (gnus-user-format-function-t gnus-tmp-= header) (if (boundp (quote gnus-tmp-decoded-group)) gnus-tmp-decoded-group = gnus-tmp-group)) (insert (format " %5s U, %3d T, %3d D, %s L:%d %s %s\n" gnus-tmp-numb= er-of-unread (gnus-range-length (cdr (assq (quote tick) gnus-tmp-marked))) = (gnus-range-length (cdr (assq (quote dormant) gnus-tmp-marked))) (gnus-tota= l-fetched-for gnus-tmp-group) gnus-tmp-level (gnus-user-format-function-t g= nus-tmp-header) (if (boundp (quote gnus-tmp-decoded-group)) gnus-tmp-decode= d-group gnus-tmp-group))) (let (gnus-position) (insert (format "%c%s %c%c %5s " gnus-tmp-process-ma= rked gnus-group-indentation gnus-tmp-summary-live (gnus-group-new-mail gnus= -tmp-group) (if (gnus-active gnus-tmp-group) (gnus-number-of-unseen-article= s-in-group gnus-tmp-group) "*"))) (setq gnus-position (point)) (gnus-put-te= xt-property (point) (progn (insert gnus-tmp-qualified-group) (point)) gnus-= mouse-face-prop gnus-mouse-face) (if (> (current-column) 35) (let ((end (po= int))) (if (=3D (move-to-column 35) 35) (delete-region (point) end) (delete= -region (1- (point)) end) (insert " "))) (insert-char 32 (max (- 35 (curren= t-column)) 0))) (insert (format " %5s U, %3d T, %3d D, %s L:%d %s %s\n"= gnus-tmp-number-of-unread (gnus-range-length (cdr (assq (quote tick) gnus-= tmp-marked))) (gnus-range-length (cdr (assq (quote dormant) gnus-tmp-marked= ))) (gnus-total-fetched-for gnus-tmp-group) gnus-tmp-level (gnus-user-forma= t-function-t gnus-tmp-header) (if (boundp (quote gnus-tmp-decoded-group)) g= nus-tmp-decoded-group gnus-tmp-group))) (if gnus-position (gnus-put-text-pr= operty gnus-position (1+ gnus-position) (quote gnus-position) t))) eval((let (gnus-position) (insert (format "%c%s %c%c %5s " gnus-tmp-proce= ss-marked gnus-group-indentation gnus-tmp-summary-live (gnus-group-new-mail= gnus-tmp-group) (if (gnus-active gnus-tmp-group) (gnus-number-of-unseen-ar= ticles-in-group gnus-tmp-group) "*"))) (setq gnus-position (point)) (gnus-p= ut-text-property (point) (progn (insert gnus-tmp-qualified-group) (point)) = gnus-mouse-face-prop gnus-mouse-face) (if (> (current-column) 35) (let ((en= d (point))) (if (=3D (move-to-column 35) 35) (delete-region (point) end) (d= elete-region (1- (point)) end) (insert " "))) (insert-char 32 (max (- 35 (c= urrent-column)) 0))) (insert (format " %5s U, %3d T, %3d D, %s L:%d %s = %s\n" gnus-tmp-number-of-unread (gnus-range-length (cdr (assq (quote tick) = gnus-tmp-marked))) (gnus-range-length (cdr (assq (quote dormant) gnus-tmp-m= arked))) (gnus-total-fetched-for gnus-tmp-group) gnus-tmp-level (gnus-user-= format-function-t gnus-tmp-header) (if (boundp (quote gnus-tmp-decoded-grou= p)) gnus-tmp-decoded-group gnus-tmp-group))) (if gnus-position (gnus-put-te= xt-property gnus-position (1+ gnus-position) (quote gnus-position) t)))) gnus-group-insert-group-line("nntp+gmane:gmane.announce" 3 ((seen (1 . 18= 742) (18916 . 19115))) 3948 "nntp:gmane") gnus-topic-prepare-topic((("announcements" visible nil nil)) 2 5 nil nil = 1 nil) gnus-topic-prepare-topic((("gmane" visible nil ((subscribe . "^nntp\\+gma= ne:") (gcc-self . "nnimap+nedu:incoming") (agent-predicate and (not my-arti= cle-old-p)))) (("announcements" visible nil nil))) 1 5 nil nil 1 nil) gnus-topic-prepare-topic(...) gnus-group-prepare-topics(5 nil nil) gnus-group-list-groups(nil) byte-code("..." [dont-connect did-connect gnus-startup-file gnus-current-= startup-file gnus-slave gnus-use-dribble-file gnus-group-quit gnus-run-hook= s gnus-startup-hook gnus-make-newsrc-file gnus-dribble-read-file gnus-setup= -news nil gnus-setup-news-hook gnus-request-create-group "queue" (nndraft "= ") gnus-start-draft-setup gnus-group-list-groups gnus-group-first-unread-gr= oup gnus-configure-windows group gnus-group-set-mode-line gnus-started-hook= level gnus-agent] 4) gnus-1(nil nil nil) gnus(nil) call-interactively(gnus record nil) command-execute(gnus record) execute-extended-command(nil "gnus") call-interactively(execute-extended-command nil nil) But I had no time so far to do a clean reproduction. As a workaround, I rem= oved %F from gnus-group-line-format temporary.