aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2001-09-01 21:19:45 +0000
committerStefan Monnier2001-09-01 21:19:45 +0000
commite036e92051dcb004df92602db6d7a92f13aa94ce (patch)
treea176c7148e53eee4591630abbe7ab2d6c5518c75
parent75c911eb15a2aa6519b98af74ef9cbb6d8b76783 (diff)
downloademacs-e036e92051dcb004df92602db6d7a92f13aa94ce.tar.gz
emacs-e036e92051dcb004df92602db6d7a92f13aa94ce.zip
*** empty log message ***
-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 @@
5;; Author: code extracted from Emacs-20's simple.el 5;; Author: code extracted from Emacs-20's simple.el
6;; Maintainer: Stefan Monnier <monnier@cs.yale.edu> 6;; Maintainer: Stefan Monnier <monnier@cs.yale.edu>
7;; Keywords: comment uncomment 7;; Keywords: comment uncomment
8;; Revision: $Id: newcomment.el,v 1.31 2001/03/02 20:31:40 monnier Exp $ 8;; Revision: $Id: newcomment.el,v 1.32 2001/08/21 18:30:59 monnier Exp $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -446,8 +446,10 @@ If CONTINUE is non-nil, use the `comment-continue' markers if any."
446 ;; If none, insert one. 446 ;; If none, insert one.
447 (save-excursion 447 (save-excursion
448 ;; Some comment-indent-function insist on not moving comments that 448 ;; Some comment-indent-function insist on not moving comments that
449 ;; are in column 0, so we insert a space to avoid this special case 449 ;; are in column 0, so we insert a space to avoid this special
450 (insert " ") 450 ;; case. The check for (zerop comment-column) is used for cases
451 ;; where we're called from comment-indent-new-line.
452 (unless (zerop comment-column) (insert " "))
451 (setq begpos (point)) 453 (setq begpos (point))
452 (insert starter) 454 (insert starter)
453 (setq cpos (point-marker)) 455 (setq cpos (point-marker))