(comment-normalize-vars): Handle a nil comment-padding.

This commit is contained in:
Stefan Monnier 2001-11-13 20:19:22 +00:00
parent b3700ae76d
commit 9145f1c236
2 changed files with 4 additions and 1 deletions

View 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>.

View 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