diff options
| author | Richard M. Stallman | 1994-08-26 06:55:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-08-26 06:55:43 +0000 |
| commit | dca460725ce472101466cc70832b2c86f9a9a244 (patch) | |
| tree | de4c4b1a9dac42a66bff3416d31fe8e6ab5c1bf8 | |
| parent | 23cf7c602a3ec4f10f8eb312e0f38ae8ba9fea29 (diff) | |
| download | emacs-dca460725ce472101466cc70832b2c86f9a9a244.tar.gz emacs-dca460725ce472101466cc70832b2c86f9a9a244.zip | |
(rmail-summary-output-menu): New command.
(rmail-summary-mode-map): Add Output and Input with menu of files.
(rmail-summary-rmail-update): Check whether rmail-buffer is dead.
| -rw-r--r-- | lisp/mail/rmailsum.el | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index 10c5f7ef3af..5a009ce55dc 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -592,9 +592,10 @@ Commands for sorting the summary: | |||
| 592 | (select-window window) | 592 | (select-window window) |
| 593 | (rmail-show-message msg-num)) | 593 | (rmail-show-message msg-num)) |
| 594 | (select-window owin)) | 594 | (select-window owin)) |
| 595 | (save-excursion | 595 | (if (buffer-name rmail-buffer) |
| 596 | (set-buffer rmail-buffer) | 596 | (save-excursion |
| 597 | (rmail-show-message msg-num))))))))) | 597 | (set-buffer rmail-buffer) |
| 598 | (rmail-show-message msg-num)))))))))) | ||
| 598 | 599 | ||
| 599 | (defvar rmail-summary-mode-map nil) | 600 | (defvar rmail-summary-mode-map nil) |
| 600 | 601 | ||
| @@ -667,6 +668,12 @@ Commands for sorting the summary: | |||
| 667 | (define-key rmail-summary-mode-map [menu-bar classify] | 668 | (define-key rmail-summary-mode-map [menu-bar classify] |
| 668 | (cons "Classify" (make-sparse-keymap "Classify"))) | 669 | (cons "Classify" (make-sparse-keymap "Classify"))) |
| 669 | 670 | ||
| 671 | (define-key rmail-summary-mode-map [menu-bar classify output-menu] | ||
| 672 | '("Output (Rmail Menu)..." . rmail-summary-output-menu)) | ||
| 673 | |||
| 674 | (define-key rmail-summary-mode-map [menu-bar classify input-menu] | ||
| 675 | '("Input Rmail file (menu)..." . rmail-input-menu)) | ||
| 676 | |||
| 670 | (define-key rmail-summary-mode-map [menu-bar classify output-inbox] | 677 | (define-key rmail-summary-mode-map [menu-bar classify output-inbox] |
| 671 | '("Output (inbox)..." . rmail-summary-output)) | 678 | '("Output (inbox)..." . rmail-summary-output)) |
| 672 | 679 | ||
| @@ -1109,6 +1116,19 @@ buffer visiting that file." | |||
| 1109 | (if rmail-delete-after-output | 1116 | (if rmail-delete-after-output |
| 1110 | (rmail-summary-delete-forward nil))) | 1117 | (rmail-summary-delete-forward nil))) |
| 1111 | 1118 | ||
| 1119 | (defun rmail-summary-output-menu () | ||
| 1120 | "Output current message to another Rmail file, chosen with a menu. | ||
| 1121 | Also set the default for subsequent \\[rmail-output-to-rmail-file] commands. | ||
| 1122 | The variables `rmail-secondary-file-directory' and | ||
| 1123 | `rmail-secondary-file-regexp' control which files are offered in the menu." | ||
| 1124 | (interactive) | ||
| 1125 | (save-excursion | ||
| 1126 | (set-buffer rmail-buffer) | ||
| 1127 | (let ((rmail-delete-after-output nil)) | ||
| 1128 | (call-interactively 'rmail-output-menu))) | ||
| 1129 | (if rmail-delete-after-output | ||
| 1130 | (rmail-summary-delete-forward nil))) | ||
| 1131 | |||
| 1112 | (defun rmail-summary-output () | 1132 | (defun rmail-summary-output () |
| 1113 | "Append this message to Unix mail file named FILE-NAME." | 1133 | "Append this message to Unix mail file named FILE-NAME." |
| 1114 | (interactive) | 1134 | (interactive) |