Mercurial > emacs
comparison lisp/progmodes/c-mode.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 | 42e8acda5021 |
children | 4a181ea97251 |
comparison
equal
deleted
inserted
replaced
24446:25556de3fe49 | 24447:8309f6535486 |
---|---|
388 (setq imenu-generic-expression c-imenu-generic-expression) | 388 (setq imenu-generic-expression c-imenu-generic-expression) |
389 (setq imenu-case-fold-search nil) | 389 (setq imenu-case-fold-search nil) |
390 (run-hooks 'c-mode-hook)) | 390 (run-hooks 'c-mode-hook)) |
391 | 391 |
392 (defun c-outline-level () | 392 (defun c-outline-level () |
393 (save-excursion | 393 ;; This so that `current-column' DTRT in otherwise-hidden text. |
394 (skip-chars-forward "\t ") | 394 (let (buffer-invisibility-spec) |
395 (current-column))) | 395 (save-excursion |
396 (skip-chars-forward "\t ") | |
397 (current-column)))) | |
396 | 398 |
397 ;; This is used by indent-for-comment | 399 ;; This is used by indent-for-comment |
398 ;; to decide how much to indent a comment in C code | 400 ;; to decide how much to indent a comment in C code |
399 ;; based on its context. | 401 ;; based on its context. |
400 (defun c-comment-indent () | 402 (defun c-comment-indent () |