Mercurial > emacs
comparison lisp/progmodes/hideif.el @ 13856:8046a1616264
(hide-ifdefs): Set hif-outside-read-only here.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 25 Dec 1995 21:03:10 +0000 |
parents | b3cbcf32fdf7 |
children | 6fb89c4b21c3 |
comparison
equal
deleted
inserted
replaced
13855:b3cbcf32fdf7 | 13856:8046a1616264 |
---|---|
927 | 927 |
928 Turn off hiding by calling `show-ifdefs'." | 928 Turn off hiding by calling `show-ifdefs'." |
929 | 929 |
930 (interactive) | 930 (interactive) |
931 (message "Hiding...") | 931 (message "Hiding...") |
932 (setq hif-outside-read-only buffer-read-only) | |
932 (if (not hide-ifdef-mode) | 933 (if (not hide-ifdef-mode) |
933 (hide-ifdef-mode 1)) ; turn on hide-ifdef-mode | 934 (hide-ifdef-mode 1)) ; turn on hide-ifdef-mode |
934 (if hide-ifdef-hiding | 935 (if hide-ifdef-hiding |
935 (show-ifdefs)) ; Otherwise, deep confusion. | 936 (show-ifdefs)) ; Otherwise, deep confusion. |
936 (let ((inhibit-read-only t)) | 937 (let ((inhibit-read-only t)) |