diff options
| author | Dave Love | 2000-01-08 22:36:16 +0000 |
|---|---|---|
| committer | Dave Love | 2000-01-08 22:36:16 +0000 |
| commit | be0b8d69651fd9fd97f05c824e6084fe18f0cb39 (patch) | |
| tree | 27b23bae583eef9bafc443ae16cc657fe40dd98e | |
| parent | c65d14eef10ef018d0fe36d048390f7e91c3618e (diff) | |
| download | emacs-be0b8d69651fd9fd97f05c824e6084fe18f0cb39.tar.gz emacs-be0b8d69651fd9fd97f05c824e6084fe18f0cb39.zip | |
Require rmail, mailalias when compiling.
(mail-setup-hook): Add :options.
(mail-mode-hook, mail-send-hook): Customize.
| -rw-r--r-- | lisp/mail/sendmail.el | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index e4da1dcddb4..a2b74d0de5f 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; sendmail.el --- mail sending commands for Emacs. | 1 | ;;; sendmail.el --- mail sending commands for Emacs. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1998 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1985, 86, 92-96, 98, 2000 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: FSF | 5 | ;; Maintainer: FSF |
| 6 | ;; Keywords: mail | 6 | ;; Keywords: mail |
| @@ -28,6 +28,10 @@ | |||
| 28 | ;; documented in the Emacs user's manual. | 28 | ;; documented in the Emacs user's manual. |
| 29 | 29 | ||
| 30 | ;;; Code: | 30 | ;;; Code: |
| 31 | (eval-when-compile | ||
| 32 | (require 'rmail) | ||
| 33 | (require 'mailalias)) | ||
| 34 | |||
| 31 | (defgroup sendmail nil | 35 | (defgroup sendmail nil |
| 32 | "Mail sending commands for Emacs." | 36 | "Mail sending commands for Emacs." |
| 33 | :prefix "mail-" | 37 | :prefix "mail-" |
| @@ -146,6 +150,7 @@ This file need not actually exist." | |||
| 146 | "Normal hook, run each time a new outgoing mail message is initialized. | 150 | "Normal hook, run each time a new outgoing mail message is initialized. |
| 147 | The function `mail-setup' runs this hook." | 151 | The function `mail-setup' runs this hook." |
| 148 | :type 'hook | 152 | :type 'hook |
| 153 | :options '(fortune-to-signature spook) | ||
| 149 | :group 'sendmail) | 154 | :group 'sendmail) |
| 150 | 155 | ||
| 151 | (defvar mail-aliases t | 156 | (defvar mail-aliases t |
| @@ -424,6 +429,12 @@ actually occur.") | |||
| 424 | (set-buffer-modified-p nil)) | 429 | (set-buffer-modified-p nil)) |
| 425 | (run-hooks 'mail-setup-hook)) | 430 | (run-hooks 'mail-setup-hook)) |
| 426 | 431 | ||
| 432 | (defcustom mail-mode-hook nil | ||
| 433 | "Hook run by Mail mode." | ||
| 434 | :group 'sendmail | ||
| 435 | :type 'hook | ||
| 436 | :options '(footnote-mode)) | ||
| 437 | |||
| 427 | ;;;###autoload | 438 | ;;;###autoload |
| 428 | (defun mail-mode () | 439 | (defun mail-mode () |
| 429 | "Major mode for editing mail to be sent. | 440 | "Major mode for editing mail to be sent. |
| @@ -677,6 +688,12 @@ Prefix arg means don't delete this window." | |||
| 677 | (delete-window)) | 688 | (delete-window)) |
| 678 | (switch-to-buffer newbuf)))))) | 689 | (switch-to-buffer newbuf)))))) |
| 679 | 690 | ||
| 691 | (defcustom mail-send-hook nil | ||
| 692 | "Hook run just before sending mail with `mail-send'." | ||
| 693 | :type 'hook | ||
| 694 | :options '(flyspell-mode-off) | ||
| 695 | :group 'sendmail) | ||
| 696 | |||
| 680 | (defun mail-send () | 697 | (defun mail-send () |
| 681 | "Send the message in the current buffer. | 698 | "Send the message in the current buffer. |
| 682 | If `mail-interactive' is non-nil, wait for success indication | 699 | If `mail-interactive' is non-nil, wait for success indication |