summaryrefslogtreecommitdiff
path: root/lisp/newcomment.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2001-10-12 22:37:51 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2001-10-12 22:37:51 +0000
commit414dccd9bc0a2be9879f30f5d68195061458f0f3 (patch)
tree14c5ac441537e2780dbeed838002e1cf77245e35 /lisp/newcomment.el
parentafa1f7a1aec4617ac82ed0d89c8f33ea17cbd277 (diff)
downloademacs-414dccd9bc0a2be9879f30f5d68195061458f0f3.tar.gz
(comment-region-internal): Don't rebind
invisibility_spec now that the C routines handle it correctly.
Diffstat (limited to 'lisp/newcomment.el')
-rw-r--r--lisp/newcomment.el11
1 files changed, 2 insertions, 9 deletions
diff --git a/lisp/newcomment.el b/lisp/newcomment.el
index 3a30285c904..ecef1c7b182 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.35 2001/09/27 21:13:44 monnier Exp $
+;; Revision: $Id: newcomment.el,v 1.36 2001/10/11 01:44:48 monnier Exp $
;; This file is part of GNU Emacs.
@@ -765,14 +765,7 @@ rather than at left margin."
(unless (or ce (eolp)) (insert "\n") (indent-according-to-mode))
(comment-with-narrowing beg end
(let ((min-indent (point-max))
- (max-indent 0)
- ;; We rebind the invisibility spec because move-to-column
- ;; skips invisible text. Only reveal ellipses.
- (buffer-invisibility-spec
- (if (listp buffer-invisibility-spec)
- (mapcar (lambda (x) (if (cdr-safe x) t x))
- buffer-invisibility-spec)
- buffer-invisibility-spec)))
+ (max-indent 0))
(goto-char (point-min))
;; Quote any nested comment marker
(comment-quote-nested comment-start comment-end nil)