diff options
| -rw-r--r-- | lisp/textmodes/outline.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/textmodes/outline.el b/lisp/textmodes/outline.el index f2f32405fda..bf15f6186f0 100644 --- a/lisp/textmodes/outline.el +++ b/lisp/textmodes/outline.el | |||
| @@ -214,7 +214,7 @@ Turning on outline mode calls the value of `text-mode-hook' and then of | |||
| 214 | (make-local-variable 'line-move-ignore-invisible) | 214 | (make-local-variable 'line-move-ignore-invisible) |
| 215 | (setq line-move-ignore-invisible t) | 215 | (setq line-move-ignore-invisible t) |
| 216 | ;; Cause use of ellipses for invisible text. | 216 | ;; Cause use of ellipses for invisible text. |
| 217 | (setq buffer-invisibility-spec '((t . t))) | 217 | (add-to-invisibility-spec '(outline . t)) |
| 218 | (make-local-variable 'paragraph-start) | 218 | (make-local-variable 'paragraph-start) |
| 219 | (setq paragraph-start (concat paragraph-start "\\|\\(" | 219 | (setq paragraph-start (concat paragraph-start "\\|\\(" |
| 220 | outline-regexp "\\)")) | 220 | outline-regexp "\\)")) |
| @@ -270,11 +270,11 @@ See the command `outline-mode' for more information on this mode." | |||
| 270 | (make-local-variable 'line-move-ignore-invisible) | 270 | (make-local-variable 'line-move-ignore-invisible) |
| 271 | (setq line-move-ignore-invisible t) | 271 | (setq line-move-ignore-invisible t) |
| 272 | ;; Cause use of ellipses for invisible text. | 272 | ;; Cause use of ellipses for invisible text. |
| 273 | (setq buffer-invisibility-spec '((t . t))) | 273 | (add-to-invisibility-spec '(outline . t)) |
| 274 | (run-hooks 'outline-minor-mode-hook)) | 274 | (run-hooks 'outline-minor-mode-hook)) |
| 275 | (setq line-move-ignore-invisible nil) | 275 | (setq line-move-ignore-invisible nil) |
| 276 | ;; Cause use of ellipses for invisible text. | 276 | ;; Cause use of ellipses for invisible text. |
| 277 | (setq buffer-invisibility-spec t)) | 277 | (remove-from-invisibility-spec '(outline . t))) |
| 278 | ;; When turning off outline mode, get rid of any outline hiding. | 278 | ;; When turning off outline mode, get rid of any outline hiding. |
| 279 | (or outline-minor-mode | 279 | (or outline-minor-mode |
| 280 | (show-all)) | 280 | (show-all)) |
| @@ -402,7 +402,7 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden." | |||
| 402 | (outline-discard-overlays (point) to 'outline) | 402 | (outline-discard-overlays (point) to 'outline) |
| 403 | (if flag | 403 | (if flag |
| 404 | (let ((o (make-overlay (point) to))) | 404 | (let ((o (make-overlay (point) to))) |
| 405 | (overlay-put o 'invisible flag) | 405 | (overlay-put o 'invisible 'outline) |
| 406 | (overlay-put o 'outline t))))) | 406 | (overlay-put o 'outline t))))) |
| 407 | (run-hooks 'outline-view-change-hook)) | 407 | (run-hooks 'outline-view-change-hook)) |
| 408 | 408 | ||