From: Stefan Monnier Date: Fri, 5 Mar 2004 12:56:55 +0000 (+0000) Subject: (message-mode): Fix last change. X-Git-Tag: ttn-vms-21-2-B4~7337 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=528f876a84a425180351449bf65362efda5d2205;p=emacs.git (message-mode): Fix last change. --- diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 874307383c2..4c6284b6d85 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -1531,9 +1531,10 @@ M-RET `message-newline-and-reformat' (break the line and reformat)." (set (make-local-variable 'message-mime-part) 0) (message-setup-fill-variables) ;; Allow using comment commands to add/remove quoting. - (set (make-local-variable 'comment-start) message-yank-prefix) - (set (make-local-variable 'comment-start-skip) - (concat "^" (regexp-quote message-yank-prefix) "[ \t]*")) + (when message-yank-prefix + (set (make-local-variable 'comment-start) message-yank-prefix) + (set (make-local-variable 'comment-start-skip) + (concat "^" (regexp-quote message-yank-prefix) "[ \t]*"))) ;;(when (fboundp 'mail-hist-define-keys) ;; (mail-hist-define-keys)) (if (featurep 'xemacs)