diff options
| author | Glenn Morris | 2009-01-27 08:29:35 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-01-27 08:29:35 +0000 |
| commit | 3b5ad65462e9fcaabf7ee03fa6abe17158169103 (patch) | |
| tree | 13a85e33521096bb32e194633c84a30cb5288740 | |
| parent | 7f1a6a6fb4fe026523d9c59123cb250154838958 (diff) | |
| download | emacs-3b5ad65462e9fcaabf7ee03fa6abe17158169103.tar.gz emacs-3b5ad65462e9fcaabf7ee03fa6abe17158169103.zip | |
(rmail-copy-headers): Doc fix. Leave point at the end
of the headers in the full header case. (Bug#2073)
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d211dfd4269..3e8a1200ec8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-01-27 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-copy-headers): Doc fix. Leave point at the end | ||
| 4 | of the headers in the full header case. (Bug#2073) | ||
| 5 | |||
| 1 | 2009-01-27 Kenichi Handa <handa@m17n.org> | 6 | 2009-01-27 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * mail/rmail.el (rmail-get-coding-system): Re-search | 8 | * mail/rmail.el (rmail-get-coding-system): Re-search |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 4662c4c32a0..2ce7721735e 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -2563,7 +2563,8 @@ Otherwise, if `rmail-displayed-headers' is non-nil, copy only | |||
| 2563 | those header fields whose names match that regexp. Otherwise, | 2563 | those header fields whose names match that regexp. Otherwise, |
| 2564 | copy all header fields whose names do not match | 2564 | copy all header fields whose names do not match |
| 2565 | `rmail-ignored-headers' (unless they also match | 2565 | `rmail-ignored-headers' (unless they also match |
| 2566 | `rmail-nonignored-headers')." | 2566 | `rmail-nonignored-headers'). Leaves point in the message viewer |
| 2567 | buffer at the end of the headers." | ||
| 2567 | (let ((header-start-regexp "\n[^ \t]") | 2568 | (let ((header-start-regexp "\n[^ \t]") |
| 2568 | lim) | 2569 | lim) |
| 2569 | (with-current-buffer rmail-buffer | 2570 | (with-current-buffer rmail-buffer |
| @@ -2579,8 +2580,12 @@ copy all header fields whose names do not match | |||
| 2579 | (cond | 2580 | (cond |
| 2580 | ;; Handle the case where all headers should be copied. | 2581 | ;; Handle the case where all headers should be copied. |
| 2581 | ((eq rmail-header-style 'full) | 2582 | ((eq rmail-header-style 'full) |
| 2582 | (prepend-to-buffer rmail-view-buffer beg (point-max))) | 2583 | (prepend-to-buffer rmail-view-buffer beg (point-max)) |
| 2583 | ;; Handle the case where the headers matching the diplayed | 2584 | ;; rmail-show-message expects this function to leave point |
| 2585 | ;; at the end of the headers. | ||
| 2586 | (with-current-buffer rmail-view-buffer | ||
| 2587 | (search-forward "\n\n" nil t))) | ||
| 2588 | ;; Handle the case where the headers matching the displayed | ||
| 2584 | ;; headers regexp should be copied. | 2589 | ;; headers regexp should be copied. |
| 2585 | ((and rmail-displayed-headers (null ignored-headers)) | 2590 | ((and rmail-displayed-headers (null ignored-headers)) |
| 2586 | (while (not (eobp)) | 2591 | (while (not (eobp)) |