summaryrefslogtreecommitdiff
path: root/lisp/newcomment.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2001-09-01 21:19:45 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2001-09-01 21:19:45 +0000
commit91792429d1c991791f867ce4b045d8311ba15b0c (patch)
tree90a7f0a5a6c406158274eaffd3ad9727c14cb272 /lisp/newcomment.el
parent8dd3c6e6ce5fc32127e63c9eb7e47b317eaa5810 (diff)
downloademacs-91792429d1c991791f867ce4b045d8311ba15b0c.tar.gz
*** empty log message ***
Diffstat (limited to 'lisp/newcomment.el')
-rw-r--r--lisp/newcomment.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/newcomment.el b/lisp/newcomment.el
index 590de29a3f7..e52231ed44a 100644
--- a/lisp/newcomment.el
+++ b/lisp/newcomment.el
@@ -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.31 2001/03/02 20:31:40 monnier Exp $
+;; Revision: $Id: newcomment.el,v 1.32 2001/08/21 18:30:59 monnier Exp $
;; This file is part of GNU Emacs.
@@ -446,8 +446,10 @@ If CONTINUE is non-nil, use the `comment-continue' markers if any."
;; If none, insert one.
(save-excursion
;; Some comment-indent-function insist on not moving comments that
- ;; are in column 0, so we insert a space to avoid this special case
- (insert " ")
+ ;; are in column 0, so we insert a space to avoid this special
+ ;; case. The check for (zerop comment-column) is used for cases
+ ;; where we're called from comment-indent-new-line.
+ (unless (zerop comment-column) (insert " "))
(setq begpos (point))
(insert starter)
(setq cpos (point-marker))