diff options
| author | Glenn Morris | 2010-10-06 19:42:30 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-06 19:42:30 -0700 |
| commit | 58d1ac6d6d7c7634b3ecb7e0cf3f0c67db319b9b (patch) | |
| tree | 35793222d7d08f984e37110baf4bbca0fc3c6d29 /lisp | |
| parent | 7b9235ad958da061a3dc412c52ec28326d1a836d (diff) | |
| download | emacs-58d1ac6d6d7c7634b3ecb7e0cf3f0c67db319b9b.tar.gz emacs-58d1ac6d6d7c7634b3ecb7e0cf3f0c67db319b9b.zip | |
Reduce rmail.el's use of sendmail.el
* lisp/mail/rmail.el (mail-sendmail-delimit-header, mail-header-end)
(mail-position-on-field): Remove declarations.
(mail-position-on-field): Autoload it.
(rmail-retry-failure): Replace use of mail-sendmail-delimit-header
and mail-header-end. Don't require sendmail.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 16 |
2 files changed, 13 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 34e9282d4c6..c8cc564831f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2010-10-07 Glenn Morris <rgm@gnu.org> | 1 | 2010-10-07 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * mail/rmail.el (mail-sendmail-delimit-header, mail-header-end) | ||
| 4 | (mail-position-on-field): Remove declarations. | ||
| 5 | (mail-position-on-field): Autoload it. | ||
| 6 | (rmail-retry-failure): Replace use of mail-sendmail-delimit-header | ||
| 7 | and mail-header-end. Don't require sendmail. | ||
| 8 | |||
| 3 | * emacs-lisp/shadow.el (shadow-font-lock-keywords): New variable. | 9 | * emacs-lisp/shadow.el (shadow-font-lock-keywords): New variable. |
| 4 | (shadow-mode): New mode. | 10 | (shadow-mode): New mode. |
| 5 | (shadow-find-file): New button. | 11 | (shadow-find-file): New button. |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 07ea7cc0d25..a8763b4457f 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -3838,9 +3838,7 @@ The message should be narrowed to just the headers." | |||
| 3838 | (1- (point)) | 3838 | (1- (point)) |
| 3839 | (point-max))))))) | 3839 | (point-max))))))) |
| 3840 | 3840 | ||
| 3841 | (declare-function mail-sendmail-delimit-header "sendmail" ()) | 3841 | (autoload 'mail-position-on-field "sendmail") |
| 3842 | (declare-function mail-header-end "sendmail" ()) | ||
| 3843 | (declare-function mail-position-on-field "sendmail" (field &optional soft)) | ||
| 3844 | 3842 | ||
| 3845 | (defun rmail-retry-failure () | 3843 | (defun rmail-retry-failure () |
| 3846 | "Edit a mail message which is based on the contents of the current message. | 3844 | "Edit a mail message which is based on the contents of the current message. |
| @@ -3926,18 +3924,19 @@ specifying headers which should not be copied into the new message." | |||
| 3926 | ;; Insert original text as initial text of new draft message. | 3924 | ;; Insert original text as initial text of new draft message. |
| 3927 | ;; Bind inhibit-read-only since the header delimiter | 3925 | ;; Bind inhibit-read-only since the header delimiter |
| 3928 | ;; of the previous message was probably read-only. | 3926 | ;; of the previous message was probably read-only. |
| 3929 | (let ((inhibit-read-only t)) | 3927 | (let ((inhibit-read-only t) |
| 3928 | eoh) | ||
| 3930 | (erase-buffer) | 3929 | (erase-buffer) |
| 3931 | (insert-buffer-substring rmail-this-buffer | 3930 | (insert-buffer-substring rmail-this-buffer |
| 3932 | bounce-start bounce-end) | 3931 | bounce-start bounce-end) |
| 3933 | (goto-char (point-min)) | 3932 | (goto-char (point-min)) |
| 3934 | (if bounce-indent | 3933 | (if bounce-indent |
| 3935 | (indent-rigidly (point-min) (point-max) bounce-indent)) | 3934 | (indent-rigidly (point-min) (point-max) bounce-indent)) |
| 3936 | ;; FIXME better to replace sendmail functions. | 3935 | (rfc822-goto-eoh) |
| 3937 | (require 'sendmail) | 3936 | (setq eoh (point)) |
| 3938 | (mail-sendmail-delimit-header) | 3937 | (insert mail-header-separator) |
| 3939 | (save-restriction | 3938 | (save-restriction |
| 3940 | (narrow-to-region (point-min) (mail-header-end)) | 3939 | (narrow-to-region (point-min) eoh) |
| 3941 | (rmail-delete-headers rmail-retry-ignored-headers) | 3940 | (rmail-delete-headers rmail-retry-ignored-headers) |
| 3942 | (rmail-delete-headers "^\\(sender\\|return-path\\|received\\):") | 3941 | (rmail-delete-headers "^\\(sender\\|return-path\\|received\\):") |
| 3943 | (setq resending (mail-fetch-field "resent-to")) | 3942 | (setq resending (mail-fetch-field "resent-to")) |
| @@ -4456,5 +4455,4 @@ following the containing message. | |||
| 4456 | 4455 | ||
| 4457 | (provide 'rmail) | 4456 | (provide 'rmail) |
| 4458 | 4457 | ||
| 4459 | ;; arch-tag: 65d257d3-c281-4a65-9c38-e61af95af2f0 | ||
| 4460 | ;;; rmail.el ends here | 4458 | ;;; rmail.el ends here |