From 732b9594ceab70733e55dba8dec85e7def3824b0 Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Thu, 30 Jun 2011 01:27:16 +0000 Subject: [PATCH] nnmh.el (nnmh-request-list-1): Work on MS Windows. --- lisp/gnus/ChangeLog | 4 ++++ lisp/gnus/nnmh.el | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 558aa4ad3d8..33fd124b136 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,7 @@ +2011-06-30 Katsumi Yamaoka + + * nnmh.el (nnmh-request-list-1): Work on MS Windows. + 2011-06-30 Lars Magne Ingebrigtsen * message.el (message-point-in-header-p): Tweak the function to default diff --git a/lisp/gnus/nnmh.el b/lisp/gnus/nnmh.el index 5fa1a89cf48..ec270eba2ce 100644 --- a/lisp/gnus/nnmh.el +++ b/lisp/gnus/nnmh.el @@ -210,7 +210,9 @@ as unread by Gnus.") (max 0) min rdir num subdirectoriesp file) ;; Recurse down directories. - (setq subdirectoriesp (> (nth 1 (file-attributes dir)) 2)) + (setq subdirectoriesp + ;; nth 1 of file-attributes always 1 on MS Windows :( + (/= (nth 1 (file-attributes (file-truename dir))) 2)) (dolist (rdir files) (if (or (not subdirectoriesp) (file-regular-p rdir)) -- 2.39.2