diff options
| author | Karl Heuer | 1997-10-15 23:06:46 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-15 23:06:46 +0000 |
| commit | 3ba3fa750fb39e8bc8378038d1ad7627231b621b (patch) | |
| tree | c5f99826a3ece1482a7303daaef7de0fa9e04e2d /lisp | |
| parent | 0a18209b69268df7a09d41f5e0b6683d1b73f727 (diff) | |
| download | emacs-3ba3fa750fb39e8bc8378038d1ad7627231b621b.tar.gz emacs-3ba3fa750fb39e8bc8378038d1ad7627231b621b.zip | |
(rmail): Avoid showing message twice.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mail/rmail.el | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 44f3c520c9a..58bb678a5ac 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -453,7 +453,7 @@ If `rmail-display-summary' is non-nil, make a summary for this RMAIL file." | |||
| 453 | (let* ((file-name (expand-file-name (or file-name-arg rmail-file-name))) | 453 | (let* ((file-name (expand-file-name (or file-name-arg rmail-file-name))) |
| 454 | (existed (get-file-buffer file-name)) | 454 | (existed (get-file-buffer file-name)) |
| 455 | (coding-system-for-read 'no-conversion) | 455 | (coding-system-for-read 'no-conversion) |
| 456 | run-mail-hook) | 456 | run-mail-hook msg-shown) |
| 457 | ;; Like find-file, but in the case where a buffer existed | 457 | ;; Like find-file, but in the case where a buffer existed |
| 458 | ;; and the file was reverted, recompute the message-data. | 458 | ;; and the file was reverted, recompute the message-data. |
| 459 | (if (and existed (not (verify-visited-file-modtime existed))) | 459 | (if (and existed (not (verify-visited-file-modtime existed))) |
| @@ -484,10 +484,11 @@ If `rmail-display-summary' is non-nil, make a summary for this RMAIL file." | |||
| 484 | (if (null rmail-inbox-list) | 484 | (if (null rmail-inbox-list) |
| 485 | (progn | 485 | (progn |
| 486 | (rmail-set-message-counters) | 486 | (rmail-set-message-counters) |
| 487 | (rmail-show-message)))) | 487 | (rmail-show-message) |
| 488 | (setq msg-shown t)))) | ||
| 488 | (or (and (null file-name-arg) | 489 | (or (and (null file-name-arg) |
| 489 | (rmail-get-new-mail)) | 490 | (rmail-get-new-mail)) |
| 490 | (rmail-show-message (rmail-first-unseen-message))) | 491 | (or msg-shown (rmail-show-message (rmail-first-unseen-message)))) |
| 491 | (if rmail-display-summary (rmail-summary)) | 492 | (if rmail-display-summary (rmail-summary)) |
| 492 | (rmail-construct-io-menu) | 493 | (rmail-construct-io-menu) |
| 493 | (if run-mail-hook | 494 | (if run-mail-hook |
| @@ -1086,9 +1087,10 @@ It returns t if it got any new messages." | |||
| 1086 | (or (eq buffer-undo-list t) | 1087 | (or (eq buffer-undo-list t) |
| 1087 | (setq buffer-undo-list nil)) | 1088 | (setq buffer-undo-list nil)) |
| 1088 | (let ((all-files (if file-name (list file-name) | 1089 | (let ((all-files (if file-name (list file-name) |
| 1089 | rmail-inbox-list))) | 1090 | rmail-inbox-list)) |
| 1091 | found) | ||
| 1090 | (unwind-protect | 1092 | (unwind-protect |
| 1091 | (let (found) | 1093 | (progn |
| 1092 | (while all-files | 1094 | (while all-files |
| 1093 | (let ((opoint (point)) | 1095 | (let ((opoint (point)) |
| 1094 | (new-messages 0) | 1096 | (new-messages 0) |
| @@ -1186,7 +1188,7 @@ It returns t if it got any new messages." | |||
| 1186 | (setq found t)))) | 1188 | (setq found t)))) |
| 1187 | found) | 1189 | found) |
| 1188 | ;; Don't leave the buffer screwed up if we get a disk-full error. | 1190 | ;; Don't leave the buffer screwed up if we get a disk-full error. |
| 1189 | (rmail-show-message)))) | 1191 | (or found (rmail-show-message))))) |
| 1190 | 1192 | ||
| 1191 | (defun rmail-insert-inbox-text (files renamep) | 1193 | (defun rmail-insert-inbox-text (files renamep) |
| 1192 | ;; Detect a locked file now, so that we avoid moving mail | 1194 | ;; Detect a locked file now, so that we avoid moving mail |