Function: nxml-move-tag-backwards

nxml-move-tag-backwards is a byte-compiled function defined in nxml-rap.el.gz.

Signature

(nxml-move-tag-backwards BOUND)

Documentation

Move point backwards outside any “inside” regions or tags.

Point will not move past nxml-prolog-end. Point will either be at BOUND or a < character starting a tag outside any “inside” regions. As a precondition, point must be >= BOUND.

Source Code

;; Defined in /usr/src/emacs/lisp/nxml/nxml-rap.el.gz
(defun nxml-move-tag-backwards (bound)
  "Move point backwards outside any “inside” regions or tags.
Point will not move past `nxml-prolog-end'.
Point will either be at BOUND or a `<' character starting a tag
outside any “inside” regions.
As a precondition, point must be >= BOUND."
  (nxml-move-outside-backwards)
  (when (not (equal (char-after) ?<))
    (if (search-backward "<" bound t)
        (progn
          (nxml-move-outside-backwards)
          (when (not (equal (char-after) ?<))
            (search-backward "<" bound t)))
      (goto-char bound))))