]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-outline-level): Bind
authorDave Love <fx@gnu.org>
Sat, 6 Mar 1999 19:07:47 +0000 (19:07 +0000)
committerDave Love <fx@gnu.org>
Sat, 6 Mar 1999 19:07:47 +0000 (19:07 +0000)
buffer-invisibility-spec.

lisp/progmodes/c-mode.el
lisp/progmodes/cc-cmds.el

index ab9cf8dc9920281cb92fa68750f0b1b9ae310694..1d3c241c96f9301800386a6ec4c75943020b58d6 100644 (file)
@@ -390,9 +390,11 @@ if that value is non-nil."
   (run-hooks 'c-mode-hook))
 
 (defun c-outline-level ()
-  (save-excursion
-    (skip-chars-forward "\t ")
-    (current-column)))
+  ;; This so that `current-column' DTRT in otherwise-hidden text.
+  (let (buffer-invisibility-spec)
+    (save-excursion
+      (skip-chars-forward "\t ")
+      (current-column))))
 \f
 ;; This is used by indent-for-comment
 ;; to decide how much to indent a comment in C code
index dfe34be8e66b938c5feb75cf65ad0d851ab5e51d..35f1d0917c786c6feaff6a990a2c6b8b9a8fcbda 100644 (file)
@@ -1065,9 +1065,11 @@ comment."
 
 ;; used by outline-minor-mode
 (defun c-outline-level ()
-  (save-excursion
-    (skip-chars-forward "\t ")
-    (current-column)))
+  ;; This so that `current-column' DTRT in otherwise-hidden text.
+  (let (buffer-invisibility-spec)
+    (save-excursion
+      (skip-chars-forward "\t ")
+      (current-column))))
 
 \f
 (defun c-up-conditional (count)