summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>1999-03-06 19:07:47 +0000
committerDave Love <fx@gnu.org>1999-03-06 19:07:47 +0000
commitf87880f53d91252e469159b43bfa5b98417b8f7a (patch)
tree656904113479f6b28ecccb3f01e70870b823c17c /lisp/progmodes
parentb073b657d4f94478391bd2d7947048d8ed7a7557 (diff)
downloademacs-f87880f53d91252e469159b43bfa5b98417b8f7a.tar.gz
(c-outline-level): Bind
buffer-invisibility-spec.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/c-mode.el8
-rw-r--r--lisp/progmodes/cc-cmds.el8
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)