diff options
| author | Richard M. Stallman | 1993-08-02 07:43:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-08-02 07:43:59 +0000 |
| commit | fa24a82290e79b24e3121bf1250d27a2a5526d7a (patch) | |
| tree | 574f3436d8a0fb1dcc152e9bebfee79e8db97289 | |
| parent | 2e864a763bb79b47b520e426d6282d2ffa2d8420 (diff) | |
| download | emacs-fa24a82290e79b24e3121bf1250d27a2a5526d7a.tar.gz emacs-fa24a82290e79b24e3121bf1250d27a2a5526d7a.zip | |
(mail-yank-hooks): Initialize to nil.
(mail-yank-original): If mail-yank-hooks is nil,
call mail-indent-citation.
| -rw-r--r-- | lisp/mail/sendmail.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 48a4ce051bc..71ef8c9ba76 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -79,7 +79,7 @@ nil means use indentation.") | |||
| 79 | (defvar mail-indentation-spaces 3 | 79 | (defvar mail-indentation-spaces 3 |
| 80 | "*Number of spaces to insert at the beginning of each cited line. | 80 | "*Number of spaces to insert at the beginning of each cited line. |
| 81 | Used by `mail-yank-original' via `mail-yank-cite'.") | 81 | Used by `mail-yank-original' via `mail-yank-cite'.") |
| 82 | (defvar mail-yank-hooks '(mail-indent-citation) | 82 | (defvar mail-yank-hooks nil |
| 83 | "Obsolete hook for modifying a citation just inserted in the mail buffer. | 83 | "Obsolete hook for modifying a citation just inserted in the mail buffer. |
| 84 | Each hook function can find the citation between (point) and (mark t). | 84 | Each hook function can find the citation between (point) and (mark t). |
| 85 | And each hook function should leave point and mark around the citation | 85 | And each hook function should leave point and mark around the citation |
| @@ -678,7 +678,9 @@ and don't delete any header fields." | |||
| 678 | mail-indentation-spaces))) | 678 | mail-indentation-spaces))) |
| 679 | (if mail-citation-hook | 679 | (if mail-citation-hook |
| 680 | (run-hooks 'mail-citation-hook) | 680 | (run-hooks 'mail-citation-hook) |
| 681 | (run-hooks 'mail-yank-hooks)))) | 681 | (if mail-yank-hooks |
| 682 | (run-hooks 'mail-yank-hooks) | ||
| 683 | (mail-indent-citation))))) | ||
| 682 | ;; This is like exchange-point-and-mark, but doesn't activate the mark. | 684 | ;; This is like exchange-point-and-mark, but doesn't activate the mark. |
| 683 | ;; It is cleaner to avoid activation, even though the command | 685 | ;; It is cleaner to avoid activation, even though the command |
| 684 | ;; loop would deactivate the mark because we inserted text. | 686 | ;; loop would deactivate the mark because we inserted text. |