comparison lisp/progmodes/cc-cmds.el @ 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 32a4317c6aa5
children 2692454f031f
comparison
equal deleted inserted replaced
37198:12c496043cb0 37199:22964e38f4c2
1281 ))))) 1281 )))))
1282 1282
1283 1283
1284 ;; used by outline-minor-mode 1284 ;; used by outline-minor-mode
1285 (defun c-outline-level () 1285 (defun c-outline-level ()
1286 (save-excursion 1286 ;; This so that `current-column' DTRT in otherwise-hidden text.
1287 (skip-chars-forward "\t ") 1287 (let (buffer-invisibility-spec)
1288 (current-column))) 1288 (save-excursion
1289 (skip-chars-forward "\t ")
1290 (current-column))))
1289 1291
1290 1292
1291 (defun c-up-conditional (count) 1293 (defun c-up-conditional (count)
1292 "Move back to the containing preprocessor conditional, leaving mark behind. 1294 "Move back to the containing preprocessor conditional, leaving mark behind.
1293 A prefix argument acts as a repeat count. With a negative argument, 1295 A prefix argument acts as a repeat count. With a negative argument,