]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail-mode): Fix last change.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 5 Mar 2004 12:56:03 +0000 (12:56 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 5 Mar 2004 12:56:03 +0000 (12:56 +0000)
lisp/mail/sendmail.el

index 659de4f227cabe6bc2d9b3b38d22f15467a9e2b7..932f52204c59ce2609b96da962e41ca72d56ebe3 100644 (file)
@@ -512,8 +512,9 @@ Turning on Mail mode runs the normal hooks `text-mode-hook' and
   ;; 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)
-  (set (make-local-variable 'comment-start-skip)
-       (concat "^" (regexp-quote mail-yank-prefix) "[ \t]*"))
+  (if mail-yank-prefix
+      (set (make-local-variable 'comment-start-skip)
+          (concat "^" (regexp-quote mail-yank-prefix) "[ \t]*")))
   (make-local-variable 'adaptive-fill-regexp)
   (setq adaptive-fill-regexp
        (concat "[ \t]*[-[:alnum:]]+>+[ \t]*\\|"