changeset 37199:22964e38f4c2

(c-outline-level): Bind buffer-invisibility-spec. Originally from Dave Love, but got lost when incorporating version 5.26.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 04 Apr 2001 20:13:07 +0000
parents 12c496043cb0
children f38e632cd39e
files lisp/progmodes/cc-cmds.el
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-cmds.el	Wed Apr 04 14:11:05 2001 +0000
+++ b/lisp/progmodes/cc-cmds.el	Wed Apr 04 20:13:07 2001 +0000
@@ -1283,9 +1283,11 @@
 
 ;; 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))))
 
 
 (defun c-up-conditional (count)