Function: js--forward-text-property

js--forward-text-property is a byte-compiled function defined in js.el.gz.

Signature

(js--forward-text-property PROPNAME)

Documentation

Move over the next value of PROPNAME in the buffer.

If found, return that value and leave point after the character having that value; otherwise, return nil and leave point at EOB.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js--forward-text-property (propname)
  "Move over the next value of PROPNAME in the buffer.
If found, return that value and leave point after the character
having that value; otherwise, return nil and leave point at EOB."
  (let ((next-value (get-text-property (point) propname)))
    (if next-value
        (forward-char)

      (goto-char (next-single-property-change
                  (point) propname nil (point-max)))
      (unless (eobp)
        (setq next-value (get-text-property (point) propname))
        (forward-char)))

    next-value))