Function: nxml-split-element
nxml-split-element is an interactive and byte-compiled function
defined in nxml-mode.el.gz.
Signature
(nxml-split-element)
Documentation
Split the current element by inserting an end-tag and a start-tag.
Point is left after the newly inserted start-tag. When repeated, split immediately before the previously inserted start-tag and leave point unchanged.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-mode.el.gz
(defun nxml-split-element ()
"Split the current element by inserting an end-tag and a start-tag.
Point is left after the newly inserted start-tag. When repeated,
split immediately before the previously inserted start-tag and leave
point unchanged."
(interactive "*")
(setq nxml-last-split-position
(if (and (eq last-command this-command)
nxml-last-split-position)
(save-excursion
(goto-char nxml-last-split-position)
(nxml-finish-element-1 t))
(nxml-finish-element-1 t))))