Mercurial > emacs
comparison lisp/progmodes/cc-cmds.el @ 24447:8309f6535486
(c-outline-level): Bind
buffer-invisibility-spec.
author | Dave Love <fx@gnu.org> |
---|---|
date | Sat, 06 Mar 1999 19:07:47 +0000 |
parents | 5b0864259a4b |
children | 2986e6d0e927 |
comparison
equal
deleted
inserted
replaced
24446:25556de3fe49 | 24447:8309f6535486 |
---|---|
1063 ad-do-it | 1063 ad-do-it |
1064 (c-comment-line-break-function (ad-get-arg 0))))) | 1064 (c-comment-line-break-function (ad-get-arg 0))))) |
1065 | 1065 |
1066 ;; used by outline-minor-mode | 1066 ;; used by outline-minor-mode |
1067 (defun c-outline-level () | 1067 (defun c-outline-level () |
1068 (save-excursion | 1068 ;; This so that `current-column' DTRT in otherwise-hidden text. |
1069 (skip-chars-forward "\t ") | 1069 (let (buffer-invisibility-spec) |
1070 (current-column))) | 1070 (save-excursion |
1071 (skip-chars-forward "\t ") | |
1072 (current-column)))) | |
1071 | 1073 |
1072 | 1074 |
1073 (defun c-up-conditional (count) | 1075 (defun c-up-conditional (count) |
1074 "Move back to the containing preprocessor conditional, leaving mark behind. | 1076 "Move back to the containing preprocessor conditional, leaving mark behind. |
1075 A prefix argument acts as a repeat count. With a negative argument, | 1077 A prefix argument acts as a repeat count. With a negative argument, |