diff options
| author | Kim F. Storm | 2003-01-03 22:46:53 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-01-03 22:46:53 +0000 |
| commit | 8ba7cd4004e154cafc8d37d12e351f7cd2f03dac (patch) | |
| tree | a3d2debb6dc3bd394dc585f32ffa08b72e2ef190 /lisp/mail/sendmail.el | |
| parent | da7d231b345244fd25ac63ab614339b5e86a7264 (diff) | |
| download | emacs-8ba7cd4004e154cafc8d37d12e351f7cd2f03dac.tar.gz emacs-8ba7cd4004e154cafc8d37d12e351f7cd2f03dac.zip | |
(mail-split-line): New function.
(mail-mode-map): remap split-line to mail-split-line.
Diffstat (limited to 'lisp/mail/sendmail.el')
| -rw-r--r-- | lisp/mail/sendmail.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index ebf2f9afc90..00107a004cb 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; sendmail.el --- mail sending commands for Emacs. -*- byte-compile-dynamic: t -*- | 1 | ;;; sendmail.el --- mail sending commands for Emacs. -*- byte-compile-dynamic: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 98, 2000, 2001, 2002 | 3 | ;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 98, 2000, 2001, 2002, 2003 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -622,6 +622,7 @@ If within the headers, this makes the new lines into continuation lines." | |||
| 622 | (define-key mail-mode-map "\C-c\C-t" 'mail-text) | 622 | (define-key mail-mode-map "\C-c\C-t" 'mail-text) |
| 623 | (define-key mail-mode-map "\C-c\C-y" 'mail-yank-original) | 623 | (define-key mail-mode-map "\C-c\C-y" 'mail-yank-original) |
| 624 | (define-key mail-mode-map "\C-c\C-r" 'mail-yank-region) | 624 | (define-key mail-mode-map "\C-c\C-r" 'mail-yank-region) |
| 625 | (define-key mail-mode-map [remap split-line] 'mail-split-line) | ||
| 625 | (define-key mail-mode-map "\C-c\C-q" 'mail-fill-yanked-message) | 626 | (define-key mail-mode-map "\C-c\C-q" 'mail-fill-yanked-message) |
| 626 | (define-key mail-mode-map "\C-c\C-w" 'mail-signature) | 627 | (define-key mail-mode-map "\C-c\C-w" 'mail-signature) |
| 627 | (define-key mail-mode-map "\C-c\C-v" 'mail-sent-via) | 628 | (define-key mail-mode-map "\C-c\C-v" 'mail-sent-via) |
| @@ -1418,6 +1419,13 @@ and don't delete any header fields." | |||
| 1418 | (if mail-yank-hooks | 1419 | (if mail-yank-hooks |
| 1419 | (run-hooks 'mail-yank-hooks) | 1420 | (run-hooks 'mail-yank-hooks) |
| 1420 | (mail-indent-citation)))))))) | 1421 | (mail-indent-citation)))))))) |
| 1422 | |||
| 1423 | (defun mail-split-line () | ||
| 1424 | "Split current line, moving portion beyond point vertically down. | ||
| 1425 | If the current line has `mail-yank-prefix', insert it on the new line." | ||
| 1426 | (interactive "*") | ||
| 1427 | (split-line mail-yank-prefix)) | ||
| 1428 | |||
| 1421 | 1429 | ||
| 1422 | (defun mail-attach-file (&optional file) | 1430 | (defun mail-attach-file (&optional file) |
| 1423 | "Insert a file at the end of the buffer, with separator lines around it." | 1431 | "Insert a file at the end of the buffer, with separator lines around it." |