diff options
| author | Lars Magne Ingebrigtsen | 2010-09-05 00:38:39 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-05 00:38:39 +0000 |
| commit | 2c8bcd54bd7d153bd6afd3c9dfa55c0b934c508d (patch) | |
| tree | 06143de1c521b77e5a919b425c69393251569f2b | |
| parent | 8c3e17f87bb02b8a2b05f66948c28b08a89e6d87 (diff) | |
| download | emacs-2c8bcd54bd7d153bd6afd3c9dfa55c0b934c508d.tar.gz emacs-2c8bcd54bd7d153bd6afd3c9dfa55c0b934c508d.zip | |
nnmh.el (nnmh-request-list-1): Output active lines also for empty directories. This makes the draft queue directory work.
| -rw-r--r-- | lisp/gnus/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/gnus/nnmh.el | 38 |
2 files changed, 22 insertions, 19 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index a487b63ffed..76ca82eb710 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-09-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2010-09-04 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * nnmh.el (nnmh-request-list-1): Output active lines also for empty | ||
| 4 | directories. This makes the draft queue directory work. | ||
| 5 | |||
| 3 | * gnus-start.el (gnus-get-unread-articles): Rewrite the way we request | 6 | * gnus-start.el (gnus-get-unread-articles): Rewrite the way we request |
| 4 | data from the backends, so that we only request the list of groups from | 7 | data from the backends, so that we only request the list of groups from |
| 5 | each method once. This should speed things up considerably. | 8 | each method once. This should speed things up considerably. |
diff --git a/lisp/gnus/nnmh.el b/lisp/gnus/nnmh.el index 4b843e62153..ba9eb232f3b 100644 --- a/lisp/gnus/nnmh.el +++ b/lisp/gnus/nnmh.el | |||
| @@ -230,25 +230,25 @@ as unread by Gnus.") | |||
| 230 | (nnmh-request-list-1 rdir)))) | 230 | (nnmh-request-list-1 rdir)))) |
| 231 | ;; For each directory, generate an active file line. | 231 | ;; For each directory, generate an active file line. |
| 232 | (unless (string= (expand-file-name nnmh-toplev) dir) | 232 | (unless (string= (expand-file-name nnmh-toplev) dir) |
| 233 | (when min | 233 | (with-current-buffer nntp-server-buffer |
| 234 | (with-current-buffer nntp-server-buffer | 234 | (goto-char (point-max)) |
| 235 | (goto-char (point-max)) | 235 | (insert |
| 236 | (insert | 236 | (format |
| 237 | (format | 237 | "%s %.0f %.0f y\n" |
| 238 | "%s %.0f %.0f y\n" | 238 | (progn |
| 239 | (progn | 239 | (string-match |
| 240 | (string-match | 240 | (regexp-quote |
| 241 | (regexp-quote | 241 | (file-truename (file-name-as-directory |
| 242 | (file-truename (file-name-as-directory | 242 | (expand-file-name nnmh-toplev)))) |
| 243 | (expand-file-name nnmh-toplev)))) | 243 | dir) |
| 244 | dir) | 244 | (mm-string-to-multibyte ;Why? Isn't it multibyte already? |
| 245 | (mm-string-to-multibyte ;Why? Isn't it multibyte already? | 245 | (mm-encode-coding-string |
| 246 | (mm-encode-coding-string | 246 | (nnheader-replace-chars-in-string |
| 247 | (nnheader-replace-chars-in-string | 247 | (substring dir (match-end 0)) |
| 248 | (substring dir (match-end 0)) | 248 | ?/ ?.) |
| 249 | ?/ ?.) | 249 | nnmail-pathname-coding-system))) |
| 250 | nnmail-pathname-coding-system))) | 250 | (or max 0) |
| 251 | max min)))))) | 251 | (or min 0)))))) |
| 252 | t) | 252 | t) |
| 253 | 253 | ||
| 254 | (deffoo nnmh-request-newgroups (date &optional server) | 254 | (deffoo nnmh-request-newgroups (date &optional server) |