diff options
| author | Richard M. Stallman | 1998-07-13 01:45:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-07-13 01:45:43 +0000 |
| commit | 706e3d859134f07a7dbc54827356d83551b3fdc4 (patch) | |
| tree | 8bb37973846b9d8946e705aadc66a0e5773923fb | |
| parent | 7ec4806e71fd2b51f8925f6e4d60db3fbf946b7e (diff) | |
| download | emacs-706e3d859134f07a7dbc54827356d83551b3fdc4.tar.gz emacs-706e3d859134f07a7dbc54827356d83551b3fdc4.zip | |
(mail-citation-prefix-regexp): New variable.
(mail-fill-yanked-message): Pass mail-citation-prefix-regexp
to fill-individual-paragraphs.
| -rw-r--r-- | lisp/mail/sendmail.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 4b36b2d2e93..81a99113f9d 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -173,6 +173,15 @@ instead of no action." | |||
| 173 | :type 'hook | 173 | :type 'hook |
| 174 | :group 'sendmail) | 174 | :group 'sendmail) |
| 175 | 175 | ||
| 176 | (defcustom mail-citation-prefix-regexp "[ \t]*[-a-z0-9A-Z]*>+[ \t]*\\|[ \t]*" | ||
| 177 | "*Regular expression to match a citation prefix plus whitespace. | ||
| 178 | It should match whatever sort of citation prefixes you want to handle, | ||
| 179 | with whitespace before and after; it should also match just whitespace. | ||
| 180 | The default value matches citations like `foo-bar>' plus whitespace." | ||
| 181 | :type 'regexp | ||
| 182 | :group 'sendmail | ||
| 183 | :version "20.3") | ||
| 184 | |||
| 176 | (defvar mail-abbrevs-loaded nil) | 185 | (defvar mail-abbrevs-loaded nil) |
| 177 | (defvar mail-mode-map nil) | 186 | (defvar mail-mode-map nil) |
| 178 | 187 | ||
| @@ -1124,7 +1133,7 @@ Numeric argument means justify as well." | |||
| 1124 | (fill-individual-paragraphs (point) | 1133 | (fill-individual-paragraphs (point) |
| 1125 | (point-max) | 1134 | (point-max) |
| 1126 | justifyp | 1135 | justifyp |
| 1127 | t))) | 1136 | mail-citation-prefix-regexp))) |
| 1128 | 1137 | ||
| 1129 | (defun mail-indent-citation () | 1138 | (defun mail-indent-citation () |
| 1130 | "Modify text just inserted from a message to be cited. | 1139 | "Modify text just inserted from a message to be cited. |