diff options
| author | Lars Magne Ingebrigtsen | 2010-09-25 15:07:55 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-25 15:07:55 +0000 |
| commit | 758845a0bd4920d46dbbbe6e4dcb46498cb25ef1 (patch) | |
| tree | 18d69ec6bd31dd20bad756102c44f040e45decd8 | |
| parent | cd178df250c91b24f576a6e7904d70ea1c5c81c1 (diff) | |
| download | emacs-758845a0bd4920d46dbbbe6e4dcb46498cb25ef1.tar.gz emacs-758845a0bd4920d46dbbbe6e4dcb46498cb25ef1.zip | |
nndraft.el (nndraft-retrieve-headers): Insert Lines and Chars headers for prettier summary display.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/nndraft.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index db1c287e3e5..3bfb4119959 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * nndraft.el (nndraft-retrieve-headers): Insert Lines and Chars headers | ||
| 4 | for prettier summary display. | ||
| 5 | |||
| 1 | 2010-09-25 Andrew Cohen <cohen@andy.bu.edu> (tiny change) | 6 | 2010-09-25 Andrew Cohen <cohen@andy.bu.edu> (tiny change) |
| 2 | 7 | ||
| 3 | * nnir.el (nnir-run-imap): Allow sending IMAP search patterns | 8 | * nnir.el (nnir-run-imap): Allow sending IMAP search patterns |
diff --git a/lisp/gnus/nndraft.el b/lisp/gnus/nndraft.el index 157c65da8d1..313675c2fac 100644 --- a/lisp/gnus/nndraft.el +++ b/lisp/gnus/nndraft.el | |||
| @@ -79,7 +79,7 @@ are generated if and only if they are also in `message-draft-headers'.") | |||
| 79 | (nndraft-possibly-change-group group) | 79 | (nndraft-possibly-change-group group) |
| 80 | (with-current-buffer nntp-server-buffer | 80 | (with-current-buffer nntp-server-buffer |
| 81 | (erase-buffer) | 81 | (erase-buffer) |
| 82 | (let* (article) | 82 | (let (article lines chars) |
| 83 | ;; We don't support fetching by Message-ID. | 83 | ;; We don't support fetching by Message-ID. |
| 84 | (if (stringp (car articles)) | 84 | (if (stringp (car articles)) |
| 85 | 'headers | 85 | 'headers |
| @@ -91,9 +91,12 @@ are generated if and only if they are also in `message-draft-headers'.") | |||
| 91 | (if (search-forward "\n\n" nil t) | 91 | (if (search-forward "\n\n" nil t) |
| 92 | (forward-line -1) | 92 | (forward-line -1) |
| 93 | (goto-char (point-max))) | 93 | (goto-char (point-max))) |
| 94 | (setq lines (count-lines (point) (point-max)) | ||
| 95 | chars (- (point-max) (point))) | ||
| 94 | (delete-region (point) (point-max)) | 96 | (delete-region (point) (point-max)) |
| 95 | (goto-char (point-min)) | 97 | (goto-char (point-min)) |
| 96 | (insert (format "221 %d Article retrieved.\n" article)) | 98 | (insert (format "221 %d Article retrieved.\n" article)) |
| 99 | (insert (format "Lines: %d\nChars: %d\n" lines chars)) | ||
| 97 | (widen) | 100 | (widen) |
| 98 | (goto-char (point-max)) | 101 | (goto-char (point-max)) |
| 99 | (insert ".\n"))) | 102 | (insert ".\n"))) |