# HG changeset patch # User Stefan Monnier # Date 986415187 0 # Node ID 22964e38f4c2e314d89f82e3916dda6a27330bf8 # Parent 12c496043cb007d41ccbb9497f5ad1b82e54445d (c-outline-level): Bind buffer-invisibility-spec. Originally from Dave Love, but got lost when incorporating version 5.26. diff -r 12c496043cb0 -r 22964e38f4c2 lisp/progmodes/cc-cmds.el --- 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)