Function: end-of-visible-line

end-of-visible-line is a byte-compiled function defined in simple.el.gz.

Signature

(end-of-visible-line)

Documentation

Move to end of current visible line.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun end-of-visible-line ()
  "Move to end of current visible line."
  (end-of-line)
  ;; If the following character is currently invisible,
  ;; skip all characters with that same `invisible' property value,
  ;; then find the next newline.
  (while (and (not (eobp))
	      (save-excursion
		(skip-chars-forward "^\n")
		(invisible-p (point))))
    (skip-chars-forward "^\n")
    (if (get-text-property (point) 'invisible)
	(goto-char (or (next-single-property-change (point) 'invisible)
		       (point-max)))
      (goto-char (next-overlay-change (point))))
    (end-of-line)))