Function: hl-line-move

hl-line-move is a byte-compiled function defined in hl-line.el.gz.

Signature

(hl-line-move OVERLAY)

Documentation

Move the Hl-Line overlay.

If hl-line-range-function is non-nil, move the OVERLAY to the position where the function returns. If hl-line-range-function is nil, fill the line including the point by OVERLAY.

Source Code

;; Defined in /usr/src/emacs/lisp/hl-line.el.gz
(defun hl-line-move (overlay)
  "Move the Hl-Line overlay.
If `hl-line-range-function' is non-nil, move the OVERLAY to the position
where the function returns.  If `hl-line-range-function' is nil, fill
the line including the point by OVERLAY."
  (let (tmp b e)
    (if hl-line-range-function
	(setq tmp (funcall hl-line-range-function)
	      b   (car tmp)
	      e   (cdr tmp))
      (setq tmp t
	    b (line-beginning-position)
	    e (line-beginning-position 2)))
    (if tmp
	(move-overlay overlay b e)
      (move-overlay overlay 1 1))))