aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2000-11-14 15:10:02 +0000
committerStefan Monnier2000-11-14 15:10:02 +0000
commitbb304a7a29f190860b70f8a2ac7f9efb7573e73d (patch)
treea99321260e89bb93596c2310cd9495567d79c83a /lisp
parent8628686a18ac35989db25430c0ad00b586367c47 (diff)
downloademacs-bb304a7a29f190860b70f8a2ac7f9efb7573e73d.tar.gz
emacs-bb304a7a29f190860b70f8a2ac7f9efb7573e73d.zip
(comment-indent): Paren typo.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/newcomment.el19
2 files changed, 14 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 32cbc7ea8f5..7c636855205 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12000-11-14 Stefan Monnier <monnier@cs.yale.edu>
2
3 * newcomment.el (comment-indent): Paren typo.
4
12000-11-14 Dave Love <fx@gnu.org> 52000-11-14 Dave Love <fx@gnu.org>
2 6
3 * cmuscheme.el: Doc fixes. 7 * 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 @@
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;; Version: $Name: $ 8;; Version: $Name: $
9;; Revision: $Id: newcomment.el,v 1.22 2000/10/08 19:07:41 monnier Exp $ 9;; Revision: $Id: newcomment.el,v 1.23 2000/11/14 10:03:56 monnier Exp $
10 10
11;; This file is part of GNU Emacs. 11;; This file is part of GNU Emacs.
12 12
@@ -444,14 +444,15 @@ If CONTINUE is non-nil, use the `comment-continuation' markers if any."
444 ;; If that's different from current, change it. 444 ;; If that's different from current, change it.
445 (skip-chars-backward " \t") 445 (skip-chars-backward " \t")
446 (delete-region (point) begpos) 446 (delete-region (point) begpos)
447 (indent-to (if (bolp) indent (max indent (1+ (current-column)))))) 447 (indent-to (if (bolp) indent
448 ;; An existing comment? 448 (max indent (1+ (current-column)))))))
449 (if cpos 449 ;; An existing comment?
450 (progn (goto-char cpos) (set-marker cpos nil)) 450 (if cpos
451 ;; No, insert one. 451 (progn (goto-char cpos) (set-marker cpos nil))
452 (insert starter) 452 ;; No, insert one.
453 (save-excursion 453 (insert starter)
454 (insert ender))))))))) 454 (save-excursion
455 (insert ender))))))))
455 456
456;;;###autoload 457;;;###autoload
457(defun comment-set-column (arg) 458(defun comment-set-column (arg)