]> git.eshelyaron.com Git - emacs.git/commitdiff
(comment-normalize-vars): Handle a nil comment-padding.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 13 Nov 2001 20:19:22 +0000 (20:19 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 13 Nov 2001 20:19:22 +0000 (20:19 +0000)
lisp/ChangeLog
lisp/newcomment.el

index 8d928502e2877b81a53a74c7c395af1a61aab5e3..b9ae96a0d8e489d4cc79e4afc4e8b970e9178123 100644 (file)
@@ -5,6 +5,8 @@
 
 2001-11-13  Stefan Monnier  <monnier@cs.yale.edu>
 
+       * newcomment.el (comment-normalize-vars): Handle a nil comment-padding.
+
        * progmodes/ada-mode.el (ada-fill-comment-prefix): GNAT wants 2 spaces.
        From Emmanuel Briot <briot@act-europe.fr>.
 
index ecef1c7b18260dc630e151deff60f36abe0b20f0..fe43618ba73937b236301bf1aedff29ac7669464 100644 (file)
@@ -5,7 +5,7 @@
 ;; Author: code extracted from Emacs-20's simple.el
 ;; Maintainer: Stefan Monnier <monnier@cs.yale.edu>
 ;; Keywords: comment uncomment
-;; Revision: $Id: newcomment.el,v 1.36 2001/10/11 01:44:48 monnier Exp $
+;; Revision: $Id: newcomment.el,v 1.37 2001/10/12 22:37:51 monnier Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -220,6 +220,7 @@ This is obsolete because you might as well use \\[newline-and-indent]."
               (goto-char (point-min))
               (and (forward-comment 1) (eobp))))))
     ;; comment-padding
+    (unless comment-padding (setq comment-padding 0))
     (when (integerp comment-padding)
       (setq comment-padding (make-string comment-padding ? )))
     ;; comment markers