Function: nxml-section-tag-transform-outline-state
nxml-section-tag-transform-outline-state is a byte-compiled function
defined in nxml-outln.el.gz.
Signature
(nxml-section-tag-transform-outline-state STARTP SECTION-START-POS &optional HEADING-START-POS)
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-outln.el.gz
(defun nxml-section-tag-transform-outline-state (startp
section-start-pos
&optional
_heading-start-pos)
(if (not startp)
(setq nxml-depth-in-target-section
(and nxml-depth-in-target-section
(> nxml-depth-in-target-section 0)
(1- nxml-depth-in-target-section)))
(cond (nxml-depth-in-target-section
(setq nxml-depth-in-target-section
(1+ nxml-depth-in-target-section)))
((= section-start-pos nxml-target-section-pos)
(setq nxml-depth-in-target-section 0)))
(when (and nxml-depth-in-target-section
(not (member section-start-pos
nxml-outline-state-transform-exceptions)))
(nxml-transform-outline-state section-start-pos))))