Function: nxml-backward-element
nxml-backward-element is an interactive and byte-compiled function
defined in nxml-mode.el.gz.
Signature
(nxml-backward-element &optional ARG)
Documentation
Move backward over one element.
With ARG, do it that many times. Negative ARG means move forward.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-mode.el.gz
(defun nxml-backward-element (&optional arg)
"Move backward over one element.
With ARG, do it that many times.
Negative ARG means move forward."
(interactive "^p")
(or arg (setq arg 1))
(if (< arg 0)
(nxml-forward-element (- arg))
(condition-case err
(while (and (> arg 0)
(< (point-min) (point)))
(goto-char
(or (and (nxml-scan-element-backward (progn
(nxml-token-after)
xmltok-start))
xmltok-start)
(error "No preceding elements")))
(setq arg (1- arg)))
(nxml-scan-error
(goto-char (cadr err))
(apply #'error (cddr err))))))