diff options
| author | Eli Zaretskii | 2004-04-24 08:57:31 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-04-24 08:57:31 +0000 |
| commit | 8a60950d6ee97101f282989169ba3972c7cb487d (patch) | |
| tree | 3341263dba2be469cdce80c0121cdae35386fc7a | |
| parent | 473551acc8a275a009d6a9a1939196b62271778e (diff) | |
| download | emacs-8a60950d6ee97101f282989169ba3972c7cb487d.tar.gz emacs-8a60950d6ee97101f282989169ba3972c7cb487d.zip | |
(rmail-mail-new-frame): Doc fix.
(rmail-start-mail): Support rmail-mail-new-frame even on
terminals that can display only one frame at a time.
| -rw-r--r-- | lisp/mail/rmail.el | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index a8a78abf01b..571219b3dfe 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -227,7 +227,9 @@ and the value of the environment variable MAIL overrides it)." | |||
| 227 | 227 | ||
| 228 | ;;;###autoload | 228 | ;;;###autoload |
| 229 | (defcustom rmail-mail-new-frame nil | 229 | (defcustom rmail-mail-new-frame nil |
| 230 | "*Non-nil means Rmail makes a new frame for composing outgoing mail." | 230 | "*Non-nil means Rmail makes a new frame for composing outgoing mail. |
| 231 | This is handy if you want to preserve the window configuration of | ||
| 232 | the frame where you have the RMAIL buffer displayed." | ||
| 231 | :type 'boolean | 233 | :type 'boolean |
| 232 | :group 'rmail-reply) | 234 | :group 'rmail-reply) |
| 233 | 235 | ||
| @@ -1666,7 +1668,15 @@ It returns t if it got any new messages." | |||
| 1666 | (defun rmail-decode-region (from to coding) | 1668 | (defun rmail-decode-region (from to coding) |
| 1667 | (if (or (not coding) (not (coding-system-p coding))) | 1669 | (if (or (not coding) (not (coding-system-p coding))) |
| 1668 | (setq coding 'undecided)) | 1670 | (setq coding 'undecided)) |
| 1669 | (decode-coding-region from to coding)) | 1671 | ;; Use -dos decoding, to remove ^M characters left from base64 or |
| 1672 | ;; rogue qp-encoded text. | ||
| 1673 | (decode-coding-region from to | ||
| 1674 | (coding-system-change-eol-conversion coding 1)) | ||
| 1675 | ;; Don't reveal the fact we used -dos decoding, as users generally | ||
| 1676 | ;; will not expect the RMAIL buffer to use DOS EOL format. | ||
| 1677 | (setq buffer-file-coding-system | ||
| 1678 | (setq last-coding-system-used | ||
| 1679 | (coding-system-change-eol-conversion coding 0)))) | ||
| 1670 | 1680 | ||
| 1671 | ;; the rmail-break-forwarded-messages feature is not implemented | 1681 | ;; the rmail-break-forwarded-messages feature is not implemented |
| 1672 | (defun rmail-convert-to-babyl-format () | 1682 | (defun rmail-convert-to-babyl-format () |
| @@ -1751,9 +1761,6 @@ It returns t if it got any new messages." | |||
| 1751 | (error nil)) | 1761 | (error nil)) |
| 1752 | ;; Change "base64" to "8bit", to reflect the | 1762 | ;; Change "base64" to "8bit", to reflect the |
| 1753 | ;; decoding we just did. | 1763 | ;; decoding we just did. |
| 1754 | (goto-char (1+ header-end)) | ||
| 1755 | (while (search-forward "\r\n" (point-max) t) | ||
| 1756 | (replace-match "\n")) | ||
| 1757 | (goto-char base64-header-field-end) | 1764 | (goto-char base64-header-field-end) |
| 1758 | (delete-region (point) (search-backward ":")) | 1765 | (delete-region (point) (search-backward ":")) |
| 1759 | (insert ": 8bit")))) | 1766 | (insert ": 8bit")))) |
| @@ -1901,9 +1908,6 @@ It returns t if it got any new messages." | |||
| 1901 | (point))) | 1908 | (point))) |
| 1902 | t) | 1909 | t) |
| 1903 | (error nil)) | 1910 | (error nil)) |
| 1904 | (goto-char header-end) | ||
| 1905 | (while (search-forward "\r\n" (point-max) t) | ||
| 1906 | (replace-match "\n")) | ||
| 1907 | ;; Change "base64" to "8bit", to reflect the | 1911 | ;; Change "base64" to "8bit", to reflect the |
| 1908 | ;; decoding we just did. | 1912 | ;; decoding we just did. |
| 1909 | (goto-char base64-header-field-end) | 1913 | (goto-char base64-header-field-end) |
| @@ -3167,7 +3171,7 @@ See also user-option `rmail-confirm-expunge'." | |||
| 3167 | (compose-mail to subject others | 3171 | (compose-mail to subject others |
| 3168 | noerase nil | 3172 | noerase nil |
| 3169 | yank-action sendactions) | 3173 | yank-action sendactions) |
| 3170 | (if (and (display-multi-frame-p) rmail-mail-new-frame) | 3174 | (if rmail-mail-new-frame |
| 3171 | (prog1 | 3175 | (prog1 |
| 3172 | (compose-mail to subject others | 3176 | (compose-mail to subject others |
| 3173 | noerase 'switch-to-buffer-other-frame | 3177 | noerase 'switch-to-buffer-other-frame |