diff options
| author | Karl Heuer | 1996-01-24 23:30:25 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-01-24 23:30:25 +0000 |
| commit | 85bd1ac690b2bf666e228dba678a4a21909d7e6d (patch) | |
| tree | b9cd69d1b77c0adee111776a2b704a6ba405ae47 | |
| parent | 13875e2f3aa278b5468074d4215fe07925a07f49 (diff) | |
| download | emacs-85bd1ac690b2bf666e228dba678a4a21909d7e6d.tar.gz emacs-85bd1ac690b2bf666e228dba678a4a21909d7e6d.zip | |
(rmail-make-basic-summary-line): Include msg line number.
(rmail-summary-goto-msg):
Pass along args NOWARN and SKIP-RMAIL in recursive call.
| -rw-r--r-- | lisp/mail/rmailsum.el | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index c77fadabbc4..c0f286a7ce2 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -378,6 +378,17 @@ nil for FUNCTION means all messages." | |||
| 378 | (- len 25)) | 378 | (- len 25)) |
| 379 | (t (- mch 14)))) | 379 | (t (- mch 14)))) |
| 380 | (min len (+ lo 25)))))))) | 380 | (min len (+ lo 25)))))))) |
| 381 | (save-excursion | ||
| 382 | (save-restriction | ||
| 383 | (widen) | ||
| 384 | (let | ||
| 385 | ((lines (count-lines (rmail-msgbeg msgnum) (rmail-msgend msgnum)))) | ||
| 386 | (format (cond | ||
| 387 | ((<= lines 9) " [%d]") | ||
| 388 | ((<= lines 99) " [%d]") | ||
| 389 | ((<= lines 999) " [%3d]") | ||
| 390 | (t "[%d]")) | ||
| 391 | lines)))) | ||
| 381 | " #" | 392 | " #" |
| 382 | (if (re-search-forward "^Subject:" nil t) | 393 | (if (re-search-forward "^Subject:" nil t) |
| 383 | (progn (skip-chars-forward " \t") | 394 | (progn (skip-chars-forward " \t") |
| @@ -530,6 +541,7 @@ Deleted messages stay in the file until the \\[rmail-expunge] command is given." | |||
| 530 | (rmail-summary-delete-forward t)) | 541 | (rmail-summary-delete-forward t)) |
| 531 | 542 | ||
| 532 | (defun rmail-summary-mark-deleted (&optional n undel) | 543 | (defun rmail-summary-mark-deleted (&optional n undel) |
| 544 | ;; Since third arg is t, this only alters the summary, not the Rmail buf. | ||
| 533 | (and n (rmail-summary-goto-msg n t t)) | 545 | (and n (rmail-summary-goto-msg n t t)) |
| 534 | (or (eobp) | 546 | (or (eobp) |
| 535 | (not (overlay-get rmail-summary-overlay 'face)) | 547 | (not (overlay-get rmail-summary-overlay 'face)) |
| @@ -877,6 +889,14 @@ Commands for sorting the summary: | |||
| 877 | (defvar rmail-summary-overlay nil) | 889 | (defvar rmail-summary-overlay nil) |
| 878 | (put 'rmail-summary-overlay 'permanent-local t) | 890 | (put 'rmail-summary-overlay 'permanent-local t) |
| 879 | 891 | ||
| 892 | ;; Go to message N in the summary buffer which is current, | ||
| 893 | ;; and in the corresponding Rmail buffer. | ||
| 894 | ;; If N is nil, use the message corresponding to point in the summary | ||
| 895 | ;; and move to that message in the Rmail buffer. | ||
| 896 | |||
| 897 | ;; If NOWARN, don't say anything if N is out of range. | ||
| 898 | ;; If SKIP-RMAIL, don't do anything to the Rmail buffer. | ||
| 899 | |||
| 880 | (defun rmail-summary-goto-msg (&optional n nowarn skip-rmail) | 900 | (defun rmail-summary-goto-msg (&optional n nowarn skip-rmail) |
| 881 | (interactive "P") | 901 | (interactive "P") |
| 882 | (if (consp n) (setq n (prefix-numeric-value n))) | 902 | (if (consp n) (setq n (prefix-numeric-value n))) |
| @@ -902,7 +922,7 @@ Commands for sorting the summary: | |||
| 902 | (if (> n total) | 922 | (if (> n total) |
| 903 | (progn (message "No following message") | 923 | (progn (message "No following message") |
| 904 | (goto-char (point-max)) | 924 | (goto-char (point-max)) |
| 905 | (rmail-summary-goto-msg))) | 925 | (rmail-summary-goto-msg nil nowarn skip-rmail))) |
| 906 | (goto-char (point-min)) | 926 | (goto-char (point-min)) |
| 907 | (if (not (re-search-forward (format "^%4d[^0-9]" n) nil t)) | 927 | (if (not (re-search-forward (format "^%4d[^0-9]" n) nil t)) |
| 908 | (progn (or nowarn (message "Message %d not found" n)) | 928 | (progn (or nowarn (message "Message %d not found" n)) |