# HG changeset patch # User Miles Bader # Date 977364661 0 # Node ID 0be0c72fb0ad20b2db8cd8109f6be27edab34685 # Parent 053098519a45320d764b9dc4b743b0c7ff01bd5c (mail-mode): Set `comment-start' to the yank prefix. diff -r 053098519a45 -r 0be0c72fb0ad lisp/mail/sendmail.el --- a/lisp/mail/sendmail.el Thu Dec 21 02:09:37 2000 +0000 +++ b/lisp/mail/sendmail.el Thu Dec 21 02:11:01 2000 +0000 @@ -475,6 +475,9 @@ (setq normal-auto-fill-function 'mail-mode-auto-fill) (make-local-variable 'fill-paragraph-function) (setq fill-paragraph-function 'mail-mode-fill-paragraph) + ;; Allow using comment commands to add/remove quoting (this only does + ;; anything if mail-yank-prefix is set to a non-nil value). + (set (make-local-variable 'comment-start) mail-yank-prefix) (make-local-variable 'adaptive-fill-regexp) (setq adaptive-fill-regexp (concat "[ \t]*\\([-|#;>*]+ *\\|(?[0-9]+[.)] *\\)+"