aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-12-21 02:11:01 +0000
committerMiles Bader2000-12-21 02:11:01 +0000
commiteba52a1acadf47b74216bb86b8c3d78a5e339341 (patch)
treee5331a641d8e29ce3287f99977ffa723c2a87d95
parent980984d8e35e2694ee280d1d556725f517174bd7 (diff)
downloademacs-eba52a1acadf47b74216bb86b8c3d78a5e339341.tar.gz
emacs-eba52a1acadf47b74216bb86b8c3d78a5e339341.zip
(mail-mode): Set `comment-start' to the yank prefix.
-rw-r--r--lisp/mail/sendmail.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 11df955c11f..1711f6ddc10 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -475,6 +475,9 @@ Here are commands that move to a header field (and create it if there isn't):
475 (setq normal-auto-fill-function 'mail-mode-auto-fill) 475 (setq normal-auto-fill-function 'mail-mode-auto-fill)
476 (make-local-variable 'fill-paragraph-function) 476 (make-local-variable 'fill-paragraph-function)
477 (setq fill-paragraph-function 'mail-mode-fill-paragraph) 477 (setq fill-paragraph-function 'mail-mode-fill-paragraph)
478 ;; Allow using comment commands to add/remove quoting (this only does
479 ;; anything if mail-yank-prefix is set to a non-nil value).
480 (set (make-local-variable 'comment-start) mail-yank-prefix)
478 (make-local-variable 'adaptive-fill-regexp) 481 (make-local-variable 'adaptive-fill-regexp)
479 (setq adaptive-fill-regexp 482 (setq adaptive-fill-regexp
480 (concat "[ \t]*\\([-|#;>*]+ *\\|(?[0-9]+[.)] *\\)+" 483 (concat "[ \t]*\\([-|#;>*]+ *\\|(?[0-9]+[.)] *\\)+"