diff lisp/newcomment.el @ 29066:720287a2312f

(comment-region-internal): Go back to BEG after quoting the nested comment markers.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 22 May 2000 04:23:37 +0000
parents 238233843fc1
children c411f27154ee
line wrap: on
line diff
--- a/lisp/newcomment.el	Mon May 22 00:19:43 2000 +0000
+++ b/lisp/newcomment.el	Mon May 22 04:23:37 2000 +0000
@@ -6,7 +6,7 @@
 ;; Maintainer: Stefan Monnier <monnier@cs.yale.edu>
 ;; Keywords: comment uncomment
 ;; Version: $Name:  $
-;; Revision: $Id: newcomment.el,v 1.11 2000/05/19 15:37:41 monnier Exp $
+;; Revision: $Id: newcomment.el,v 1.12 2000/05/21 00:27:31 monnier Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -664,8 +664,8 @@
 (defun comment-region-internal (beg end cs ce
 				    &optional ccs cce block lines indent)
   "Comment region BEG..END.
-CS and CE are the comment start resp. end string.
-CCS and CCE are the comment continuation strings for the start resp. end
+CS and CE are the comment start resp end string.
+CCS and CCE are the comment continuation strings for the start resp end
 of lines (default to CS and CE).
 BLOCK indicates that end of lines should be marked with either CCE, CE or CS
 \(if CE is empty) and that those markers should be aligned.
@@ -702,6 +702,7 @@
 	  (comment-quote-nested comment-start comment-end nil)
 
 	  ;; Loop over all lines to find the needed indentations.
+	  (goto-char (point-min))
 	  (while
 	      (progn
 		(unless (looking-at "[ \t]*$")
@@ -938,6 +939,18 @@
 
 ;;; Change Log:
 ;; $Log: newcomment.el,v $
+;; Revision 1.12  2000/05/21 00:27:31  monnier
+;; (comment-styles): New `box-multi'.
+;; (comment-normalize-vars): Better default for comment-continue to
+;; avoid whitespace-only continuations.
+;; (comment-search-forward): Always move even in the no-syntax case.
+;; (comment-padright): Only obey N if it's only obeyed for padleft.
+;; (comment-make-extra-lines): Better handling of empty continuations.
+;; Use `=' for the filler if comment-start has only one character.
+;; (uncomment-region): Try handling the special `=' filler.
+;; (comment-region): Allow LINES even if MULTI is nil.
+;; (comment-box): Choose box style based on comment-style.
+;;
 ;; Revision 1.11  2000/05/19 15:37:41  monnier
 ;; Fix license text and author.
 ;; Move aliases (indent-for-comment, set-comment-column, kill-comment