aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-10-20 23:15:02 +0000
committerRichard M. Stallman1995-10-20 23:15:02 +0000
commit203108d8e65d17869b3935afbcd28672a1a23822 (patch)
treedace5863ef4c504b4864530507c2ef6852452b69
parent4d2795c3e2390e088e5378c84eb9f1a191517c76 (diff)
downloademacs-203108d8e65d17869b3935afbcd28672a1a23822.tar.gz
emacs-203108d8e65d17869b3935afbcd28672a1a23822.zip
(outline-view-change-hook): New hook variable.
(outline-flag-region): Run the hook.
-rw-r--r--lisp/textmodes/outline.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/textmodes/outline.el b/lisp/textmodes/outline.el
index 84d95ef36e7..b872557d230 100644
--- a/lisp/textmodes/outline.el
+++ b/lisp/textmodes/outline.el
@@ -149,6 +149,9 @@ in the file it applies to.")
149 ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face)) 149 ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
150 "Additional expressions to highlight in Outline mode.") 150 "Additional expressions to highlight in Outline mode.")
151 151
152(defvar outline-view-change-hook nil
153 "Normal hook to be run after outline visibility changes.")
154
152;;;autoload 155;;;autoload
153(defun outline-mode () 156(defun outline-mode ()
154 "Set major mode for editing outlines with selective display. 157 "Set major mode for editing outlines with selective display.
@@ -364,7 +367,8 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden."
364 (if flag 367 (if flag
365 (let ((o (make-overlay (point) to))) 368 (let ((o (make-overlay (point) to)))
366 (overlay-put o 'invisible flag) 369 (overlay-put o 'invisible flag)
367 (overlay-put o 'outline t)))))) 370 (overlay-put o 'outline t)))))
371 (run-hooks 'outline-view-change-hook))
368 372
369;; Exclude from the region BEG ... END all overlays 373;; Exclude from the region BEG ... END all overlays
370;; with a non-nil PROP property. 374;; with a non-nil PROP property.