diff options
| author | Richard M. Stallman | 1998-07-27 23:09:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-07-27 23:09:41 +0000 |
| commit | ddedc4d4249be0544d86ccfcced151aed965d0bd (patch) | |
| tree | 379764f8f820ac81b38700150c7e69f4b0fe4f9a /lisp/mail | |
| parent | 639540eca3ee1f0787cab80d1b0d388744ad9a42 (diff) | |
| download | emacs-ddedc4d4249be0544d86ccfcced151aed965d0bd.tar.gz emacs-ddedc4d4249be0544d86ccfcced151aed965d0bd.zip | |
(mail-mode): Add the citation regexp
to adaptive-fill-regexp after the usual contents.
But modify the usual contents not to match whitespace alone;
match that again last.
Add that citation regexp to paragraph-start and paragraph-separate too.
Diffstat (limited to 'lisp/mail')
| -rw-r--r-- | lisp/mail/sendmail.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 81a99113f9d..43185e8a071 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -425,16 +425,20 @@ Here are commands that move to a header field (and create it if there isn't): | |||
| 425 | (setq fill-paragraph-function 'mail-mode-fill-paragraph) | 425 | (setq fill-paragraph-function 'mail-mode-fill-paragraph) |
| 426 | (make-local-variable 'adaptive-fill-regexp) | 426 | (make-local-variable 'adaptive-fill-regexp) |
| 427 | (setq adaptive-fill-regexp | 427 | (setq adaptive-fill-regexp |
| 428 | (concat "[ \t]*[-a-z0-9A-Z]*>+[ \t]*\\|" adaptive-fill-regexp)) | 428 | (concat "[ \t]*\\([-|#;>*]+ *\\|(?[0-9]+[.)] *\\)+" |
| 429 | "\\|[ \t]*[-a-z0-9A-Z]*>+[ \t]*" | ||
| 430 | "\\|[ \t]*")) | ||
| 429 | (make-local-variable 'adaptive-fill-first-line-regexp) | 431 | (make-local-variable 'adaptive-fill-first-line-regexp) |
| 430 | (setq adaptive-fill-first-line-regexp | 432 | (setq adaptive-fill-first-line-regexp |
| 431 | (concat "[ \t]*[-a-z0-9A-Z]*>+[ \t]*\\|" adaptive-fill-first-line-regexp)) | 433 | (concat adaptive-fill-first-line-regexp |
| 434 | "\\|[ \t]*[-a-z0-9A-Z]*>+[ \t]*")) | ||
| 432 | ;; `-- ' precedes the signature. `-----' appears at the start of the | 435 | ;; `-- ' precedes the signature. `-----' appears at the start of the |
| 433 | ;; lines that delimit forwarded messages. | 436 | ;; lines that delimit forwarded messages. |
| 434 | ;; Lines containing just >= 3 dashes, perhaps after whitespace, | 437 | ;; Lines containing just >= 3 dashes, perhaps after whitespace, |
| 435 | ;; are also sometimes used and should be separators. | 438 | ;; are also sometimes used and should be separators. |
| 436 | (setq paragraph-start (concat (regexp-quote mail-header-separator) | 439 | (setq paragraph-start (concat (regexp-quote mail-header-separator) |
| 437 | "$\\|[ \t]*[a-z0-9A-Z]*>+[ \t]*$\\|[ \t]*$\\|" | 440 | "$\\|[ \t]*\\([-|#;>*]+ *\\|(?[0-9]+[.)] *\\)*$" |
| 441 | "\\|[ \t]*[a-z0-9A-Z]*>+[ \t]*$\\|[ \t]*$\\|" | ||
| 438 | "-- $\\|---+$\\|" | 442 | "-- $\\|---+$\\|" |
| 439 | page-delimiter)) | 443 | page-delimiter)) |
| 440 | (setq paragraph-separate paragraph-start) | 444 | (setq paragraph-separate paragraph-start) |