# HG changeset patch # User Stefan Monnier # Date 1021919527 0 # Node ID 5d3b861665f0972dce4f5d1223186359b0507e03 # Parent ac7e0cc03aed3ba6610103a4c010256ec8a29462 (outline-reveal-toggle-invisible): Reverse the meaning of the second arg. diff -r ac7e0cc03aed -r 5d3b861665f0 lisp/textmodes/outline.el --- a/lisp/textmodes/outline.el Mon May 20 18:31:20 2002 +0000 +++ b/lisp/textmodes/outline.el Mon May 20 18:32:07 2002 +0000 @@ -82,6 +82,7 @@ (define-key map "\C-o" 'hide-other) (define-key map "\C-^" 'outline-promote) (define-key map "\C-v" 'outline-demote) + ;; Where to bind toggle and insert-heading ? map)) (defvar outline-mode-menu-bar-map @@ -497,10 +498,10 @@ ;; Seems only used by lazy-lock. I.e. obsolete. (run-hooks 'outline-view-change-hook)) -(defun outline-reveal-toggle-invisible (o revealp) +(defun outline-reveal-toggle-invisible (o hidep) (save-excursion (goto-char (overlay-start o)) - (if (null revealp) + (if hidep ;; When hiding the area again, we could just clean it up and let ;; reveal do the rest, by simply doing: ;; (remove-overlays (overlay-start o) (overlay-end o) @@ -522,7 +523,7 @@ ;; inside one of the sublevels, reveal will call us again. ;; But we need to preserve the original overlay. (let ((o1 (copy-overlay o))) - (overlay-put o1 'invisible 'outline) ;We rehide some of the text. + (overlay-put o 'invisible nil) ;Show (most of) the text. (while (progn (show-entry) (show-children)