# HG changeset patch # User Stefan Monnier # Date 985875375 0 # Node ID a2e5f00c1254d19b04593ec88fc7cc22dccb88cf # Parent 5522dea1343b112571ee0d55b2ddcd8437413b40 (generic-mode-set-comments): Use "" rather than nil for comment-end. diff -r 5522dea1343b -r a2e5f00c1254 lisp/generic.el --- a/lisp/generic.el Thu Mar 29 14:11:46 2001 +0000 +++ b/lisp/generic.el Thu Mar 29 14:16:15 2001 +0000 @@ -309,7 +309,7 @@ (concat comment-start-skip "\\|" (regexp-quote start) "+\\s-*"))) ;; First comment-style (setq comment-start start) - (setq comment-end (unless (string-equal end "\n") end)) + (setq comment-end (if (string-equal end "\n") "" end)) (setq comment-start-skip (concat (regexp-quote start) "+\\s-*"))) ;; Reuse comstyles if necessary