changeset 110529:43a857ac456c

* lisp/newcomment.el (comment-normalize-vars): Better test validity of comment-end-skip.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 21 Sep 2010 15:09:22 +0200
parents a4f29934ad86
children 2d0eee1a24b9
files lisp/ChangeLog lisp/newcomment.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Sep 20 20:11:34 2010 -0700
+++ b/lisp/ChangeLog	Tue Sep 21 15:09:22 2010 +0200
@@ -1,3 +1,8 @@
+2010-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* newcomment.el (comment-normalize-vars): Better test validity of
+	comment-end-skip.
+
 2010-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* emacs-lisp/float-sup.el (float-pi): New name for `pi'.
--- a/lisp/newcomment.el	Mon Sep 20 20:11:34 2010 -0700
+++ b/lisp/newcomment.el	Tue Sep 21 15:09:22 2010 +0200
@@ -318,7 +318,8 @@
 		   "+\\)[ \t]*")))
     (unless (and comment-end-skip
 		 ;; In case comment-end has changed since last time.
-		 (string-match comment-end-skip comment-end))
+		 (string-match comment-end-skip
+                               (if (string= "" comment-end) "\n" comment-end)))
       (let ((ce (if (string= "" comment-end) "\n"
 		  (comment-string-strip comment-end t t))))
 	(set (make-local-variable 'comment-end-skip)