aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2001-04-04 20:13:35 +0000
committerStefan Monnier <[email protected]>2001-04-04 20:13:35 +0000
commitde28797ffaff4822fa69be73ed644e1127581a83 (patch)
tree76b91eb612c4ebbda57e6ae9c5bb3134cbd251f8 /lisp/progmodes
parente2bf12baef5e95fbc54c92564a00830c77a11b19 (diff)
(c-outline-level):
Bind buffer-invisibility-spec. Originally from Dave Love, but got lost when incorporating version 5.26.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cc-cmds.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el
index ae905c08d8..70195e4cb5 100644
--- a/lisp/progmodes/cc-cmds.el
+++ b/lisp/progmodes/cc-cmds.el
@@ -1283,9 +1283,11 @@ sentence motion in or near comments and multiline strings."
;; 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)