diff options
| author | Glenn Morris | 2009-01-16 03:17:17 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-01-16 03:17:17 +0000 |
| commit | f4550e4c08896e61a7ced13f8491dd85d3dc4aa8 (patch) | |
| tree | ce27d9c2621fb9ca90033d6114b5336c120b4aca | |
| parent | b5ded71d738a44f85e9de605ec6e60f5ad5642d4 (diff) | |
| download | emacs-f4550e4c08896e61a7ced13f8491dd85d3dc4aa8.tar.gz emacs-f4550e4c08896e61a7ced13f8491dd85d3dc4aa8.zip | |
(pmail-summary-mode-map, pmail-summary-output-to-pmail-file): Use
pmail-summary-output rather than pmail-summary-output-to-babyl-file,
which was renamed 2009-01-05.
(pmail-output-as-seen): Declare.
(pmail-summary-output): Also require pmailout non-interactively.
| -rw-r--r-- | lisp/mail/pmailsum.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/mail/pmailsum.el b/lisp/mail/pmailsum.el index 629f9150efa..43064379c1e 100644 --- a/lisp/mail/pmailsum.el +++ b/lisp/mail/pmailsum.el | |||
| @@ -92,6 +92,8 @@ LABELS should be a string containing the desired labels, separated by commas." | |||
| 92 | 'pmail-message-labels-p | 92 | 'pmail-message-labels-p |
| 93 | (concat ", \\(" (mail-comma-list-regexp labels) "\\),"))) | 93 | (concat ", \\(" (mail-comma-list-regexp labels) "\\),"))) |
| 94 | 94 | ||
| 95 | ;; Moved here from pmail (which this file requires) 20090105, creating | ||
| 96 | ;; a compiler warning. ? | ||
| 95 | ;; Return t if the attributes/keywords line of msg number MSG | 97 | ;; Return t if the attributes/keywords line of msg number MSG |
| 96 | ;; contains a match for the regexp LABELS. | 98 | ;; contains a match for the regexp LABELS. |
| 97 | (defun pmail-message-labels-p (msg labels) | 99 | (defun pmail-message-labels-p (msg labels) |
| @@ -941,7 +943,7 @@ Search, the `unseen' attribute is restored.") | |||
| 941 | (define-key pmail-summary-mode-map "n" 'pmail-summary-next-msg) | 943 | (define-key pmail-summary-mode-map "n" 'pmail-summary-next-msg) |
| 942 | (define-key pmail-summary-mode-map "\en" 'pmail-summary-next-all) | 944 | (define-key pmail-summary-mode-map "\en" 'pmail-summary-next-all) |
| 943 | (define-key pmail-summary-mode-map "\e\C-n" 'pmail-summary-next-labeled-message) | 945 | (define-key pmail-summary-mode-map "\e\C-n" 'pmail-summary-next-labeled-message) |
| 944 | (define-key pmail-summary-mode-map "o" 'pmail-summary-output-to-babyl-file) | 946 | (define-key pmail-summary-mode-map "o" 'pmail-summary-output) |
| 945 | (define-key pmail-summary-mode-map "\C-o" 'pmail-summary-output) | 947 | (define-key pmail-summary-mode-map "\C-o" 'pmail-summary-output) |
| 946 | (define-key pmail-summary-mode-map "p" 'pmail-summary-previous-msg) | 948 | (define-key pmail-summary-mode-map "p" 'pmail-summary-previous-msg) |
| 947 | (define-key pmail-summary-mode-map "\ep" 'pmail-summary-previous-all) | 949 | (define-key pmail-summary-mode-map "\ep" 'pmail-summary-previous-all) |
| @@ -1008,7 +1010,7 @@ Search, the `unseen' attribute is restored.") | |||
| 1008 | '("Output (inbox)..." . pmail-summary-output)) | 1010 | '("Output (inbox)..." . pmail-summary-output)) |
| 1009 | 1011 | ||
| 1010 | (define-key pmail-summary-mode-map [menu-bar classify output] | 1012 | (define-key pmail-summary-mode-map [menu-bar classify output] |
| 1011 | '("Output (Pmail)..." . pmail-summary-output-to-babyl-file)) | 1013 | '("Output (Pmail)..." . pmail-summary-output)) |
| 1012 | 1014 | ||
| 1013 | (define-key pmail-summary-mode-map [menu-bar classify kill-label] | 1015 | (define-key pmail-summary-mode-map [menu-bar classify kill-label] |
| 1014 | '("Kill Label..." . pmail-summary-kill-label)) | 1016 | '("Kill Label..." . pmail-summary-kill-label)) |
| @@ -1624,8 +1626,10 @@ even the header display is currently pruned." | |||
| 1624 | (if (< i n) | 1626 | (if (< i n) |
| 1625 | (pmail-summary-next-msg 1)))))) | 1627 | (pmail-summary-next-msg 1)))))) |
| 1626 | 1628 | ||
| 1627 | (defalias 'pmail-summary-output-to-pmail-file | 1629 | (defalias 'pmail-summary-output-to-pmail-file 'pmail-summary-output) |
| 1628 | 'pmail-summary-output-to-babyl-file) | 1630 | |
| 1631 | (declare-function pmail-output-as-seen "pmailout" | ||
| 1632 | (file-name &optional count noattribute from-gnus)) | ||
| 1629 | 1633 | ||
| 1630 | (defun pmail-summary-output-as-seen (&optional file-name n) | 1634 | (defun pmail-summary-output-as-seen (&optional file-name n) |
| 1631 | "Append this message to system-inbox-format mail file named FILE-NAME. | 1635 | "Append this message to system-inbox-format mail file named FILE-NAME. |
| @@ -1643,6 +1647,7 @@ which is updated to the name you use in this command." | |||
| 1643 | (progn (require 'pmailout) | 1647 | (progn (require 'pmailout) |
| 1644 | (list (pmail-output-read-file-name) | 1648 | (list (pmail-output-read-file-name) |
| 1645 | (prefix-numeric-value current-prefix-arg)))) | 1649 | (prefix-numeric-value current-prefix-arg)))) |
| 1650 | (require 'pmailout) ; for pmail-output-as-seen in non-interactive case | ||
| 1646 | (let ((i 0) prev-msg) | 1651 | (let ((i 0) prev-msg) |
| 1647 | (while | 1652 | (while |
| 1648 | (and (< i n) | 1653 | (and (< i n) |