]> git.eshelyaron.com Git - emacs.git/commitdiff
nnmh.el (nnmh-request-list-1): Output active lines also for empty directories. This...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 5 Sep 2010 00:38:39 +0000 (00:38 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sun, 5 Sep 2010 00:38:39 +0000 (00:38 +0000)
lisp/gnus/ChangeLog
lisp/gnus/nnmh.el

index a487b63ffeda800848d9d02cd6ab1230f7c2cb12..76ca82eb710467baa2a8fa38030c5881953529e6 100644 (file)
@@ -1,5 +1,8 @@
 2010-09-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * nnmh.el (nnmh-request-list-1): Output active lines also for empty
+       directories.  This makes the draft queue directory work.
+
        * gnus-start.el (gnus-get-unread-articles): Rewrite the way we request
        data from the backends, so that we only request the list of groups from
        each method once.  This should speed things up considerably.
index 4b843e6215399d7da20726282a18e1a6273962de..ba9eb232f3b5231f41ad4f561f1dca4ed751d7bc 100644 (file)
@@ -230,25 +230,25 @@ as unread by Gnus.")
          (nnmh-request-list-1 rdir))))
     ;; For each directory, generate an active file line.
     (unless (string= (expand-file-name nnmh-toplev) dir)
-      (when min
-       (with-current-buffer nntp-server-buffer
-         (goto-char (point-max))
-         (insert
-          (format
-           "%s %.0f %.0f y\n"
-           (progn
-             (string-match
-              (regexp-quote
-               (file-truename (file-name-as-directory
-                               (expand-file-name nnmh-toplev))))
-              dir)
-             (mm-string-to-multibyte ;Why?  Isn't it multibyte already?
-              (mm-encode-coding-string
-               (nnheader-replace-chars-in-string
-                (substring dir (match-end 0))
-                ?/ ?.)
-               nnmail-pathname-coding-system)))
-           max min))))))
+      (with-current-buffer nntp-server-buffer
+       (goto-char (point-max))
+       (insert
+        (format
+         "%s %.0f %.0f y\n"
+         (progn
+           (string-match
+            (regexp-quote
+             (file-truename (file-name-as-directory
+                             (expand-file-name nnmh-toplev))))
+            dir)
+           (mm-string-to-multibyte ;Why?  Isn't it multibyte already?
+            (mm-encode-coding-string
+             (nnheader-replace-chars-in-string
+              (substring dir (match-end 0))
+              ?/ ?.)
+             nnmail-pathname-coding-system)))
+         (or max 0)
+         (or min 0))))))
   t)
 
 (deffoo nnmh-request-newgroups (date &optional server)