From: Stefan Monnier Date: Tue, 14 Nov 2000 15:10:02 +0000 (+0000) Subject: (comment-indent): Paren typo. X-Git-Tag: emacs-pretest-21.0.90~68 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bb304a7a29f190860b70f8a2ac7f9efb7573e73d;p=emacs.git (comment-indent): Paren typo. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 32cbc7ea8f5..7c636855205 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2000-11-14 Stefan Monnier + + * newcomment.el (comment-indent): Paren typo. + 2000-11-14 Dave Love * cmuscheme.el: Doc fixes. diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 4675370fdf7..2fe635b1a79 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -6,7 +6,7 @@ ;; Maintainer: Stefan Monnier ;; Keywords: comment uncomment ;; Version: $Name: $ -;; Revision: $Id: newcomment.el,v 1.22 2000/10/08 19:07:41 monnier Exp $ +;; Revision: $Id: newcomment.el,v 1.23 2000/11/14 10:03:56 monnier Exp $ ;; This file is part of GNU Emacs. @@ -444,14 +444,15 @@ If CONTINUE is non-nil, use the `comment-continuation' markers if any." ;; If that's different from current, change it. (skip-chars-backward " \t") (delete-region (point) begpos) - (indent-to (if (bolp) indent (max indent (1+ (current-column)))))) - ;; An existing comment? - (if cpos - (progn (goto-char cpos) (set-marker cpos nil)) - ;; No, insert one. - (insert starter) - (save-excursion - (insert ender))))))))) + (indent-to (if (bolp) indent + (max indent (1+ (current-column))))))) + ;; An existing comment? + (if cpos + (progn (goto-char cpos) (set-marker cpos nil)) + ;; No, insert one. + (insert starter) + (save-excursion + (insert ender)))))))) ;;;###autoload (defun comment-set-column (arg)