Function: nxml-hide-other
nxml-hide-other is an interactive and byte-compiled function defined
in nxml-outln.el.gz.
Signature
(nxml-hide-other)
Documentation
Hide text content other than that directly in the section containing point.
Hide headings other than those of ancestors of that section and their
immediate subheadings. The section containing point is the innermost
section that contains the character following point. See the variable
nxml-section-element-name-regexp for more details on how to
customize which elements are recognized as sections and headings.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-outln.el.gz
(defun nxml-hide-other ()
"Hide text content other than that directly in the section containing point.
Hide headings other than those of ancestors of that section and their
immediate subheadings. The section containing point is the innermost
section that contains the character following point. See the variable
`nxml-section-element-name-regexp' for more details on how to
customize which elements are recognized as sections and headings."
(interactive)
(let ((nxml-outline-state-transform-exceptions nil))
(save-excursion
(while (and (condition-case err
(nxml-back-to-section-start)
(nxml-outline-error (nxml-report-outline-error
"Couldn't find containing section: %s"
err)))
(progn
(when (and nxml-outline-state-transform-exceptions
(null (nxml-get-outline-state (point))))
(nxml-set-outline-state (point) t))
(setq nxml-outline-state-transform-exceptions
(cons (point)
nxml-outline-state-transform-exceptions))
(< nxml-prolog-end (point))))
(goto-char (1- (point)))))
(nxml-transform-buffer-outline '((nil . hide-children)
(t . hide-children)))))