diff options
| author | Richard M. Stallman | 1993-10-11 03:52:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-10-11 03:52:24 +0000 |
| commit | b30b6e2897d2b38307b3d6c56f016e8da5f28311 (patch) | |
| tree | 4e40c4e51bdc67650f21aa19372b37770fab1d29 | |
| parent | 4cd7a37326a05ff7d6a59e99fff5eccf70401e7f (diff) | |
| download | emacs-b30b6e2897d2b38307b3d6c56f016e8da5f28311.tar.gz emacs-b30b6e2897d2b38307b3d6c56f016e8da5f28311.zip | |
(rmail-retry-setup-hook): New hook variable.
(rmail-retry-failure): Use that variable.
| -rw-r--r-- | lisp/mail/rmail.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index c44284f3779..e73a6855b3e 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -85,6 +85,10 @@ and the value of the environment variable MAIL overrides it).") | |||
| 85 | (defvar rmail-mail-new-frame nil | 85 | (defvar rmail-mail-new-frame nil |
| 86 | "*Non-nil means Rmail makes a new frame for composing outgoing mail.") | 86 | "*Non-nil means Rmail makes a new frame for composing outgoing mail.") |
| 87 | 87 | ||
| 88 | ;;;###autoload | ||
| 89 | (defvar rmail-retry-setup-hook nil | ||
| 90 | "Hook that `rmail-retry-failure' uses in place of `mail-setup-hook'.") | ||
| 91 | |||
| 88 | ;; These may be altered by site-init.el to match the format of mmdf files | 92 | ;; These may be altered by site-init.el to match the format of mmdf files |
| 89 | ;; delimiting used on a given host (delim1 and delim2 from the config | 93 | ;; delimiting used on a given host (delim1 and delim2 from the config |
| 90 | ;; files). | 94 | ;; files). |
| @@ -1949,7 +1953,8 @@ the body of the original message; otherwise copy the current message." | |||
| 1949 | ;; Start sending a new message; default header fields from the original. | 1953 | ;; Start sending a new message; default header fields from the original. |
| 1950 | ;; Turn off the usual actions for initializing the message body | 1954 | ;; Turn off the usual actions for initializing the message body |
| 1951 | ;; because we want to get only the text from the failure message. | 1955 | ;; because we want to get only the text from the failure message. |
| 1952 | (let (mail-signature mail-setup-hook) | 1956 | (let (mail-signature |
| 1957 | (mail-setup-hook rmail-retry-setup-hook)) | ||
| 1953 | (if (rmail-start-mail nil to subj irp2 cc (current-buffer)) | 1958 | (if (rmail-start-mail nil to subj irp2 cc (current-buffer)) |
| 1954 | ;; Insert original text as initial text of new draft message. | 1959 | ;; Insert original text as initial text of new draft message. |
| 1955 | (progn | 1960 | (progn |