Function: hui-select-line

hui-select-line is a byte-compiled function defined in hui-select.el.

Signature

(hui-select-line POS)

Documentation

Return (start . end) of the whole line POS is in.

Includes newline unless at end of buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-select.el
;;;
;;; Document selections
;;;

(defun hui-select-line (pos)
  "Return (start . end) of the whole line POS is in.
Includes newline unless at end of buffer."
  (setq hui-select-previous 'line)
  (save-excursion
    (goto-char pos)
    (let* ((start (progn (beginning-of-line 1) (point)))
	   (end (progn (forward-line 1) (point))))
      (hui-select-set-region start end))))