diff options
author | Dave Love <fx@gnu.org> | 1999-03-06 19:07:47 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 1999-03-06 19:07:47 +0000 |
commit | f87880f53d91252e469159b43bfa5b98417b8f7a (patch) | |
tree | 656904113479f6b28ecccb3f01e70870b823c17c /lisp/progmodes | |
parent | b073b657d4f94478391bd2d7947048d8ed7a7557 (diff) | |
download | emacs-f87880f53d91252e469159b43bfa5b98417b8f7a.tar.gz |
(c-outline-level): Bind
buffer-invisibility-spec.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/c-mode.el | 8 | ||||
-rw-r--r-- | lisp/progmodes/cc-cmds.el | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index ab9cf8dc992..1d3c241c96f 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el @@ -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)))) ;; This is used by indent-for-comment ;; to decide how much to indent a comment in C code diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index dfe34be8e66..35f1d0917c7 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -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)))) (defun c-up-conditional (count) |