Subject: bug#36361: 'hl-line-range-function' as list of choice

From: Howard Melman <[email-masked]>
Date: Tue, 26 Oct 2021 15:17:52 -0400

> On Oct 26, 2021, at 3:11 PM, Eli Zaretskii <[email-masked]> wrote:
> 
> Try this:
> 
>  (defun visual-line-range-function ()
>    "Return a cons cell of positions of begining and end 
>  of the current line in `visual-line-mode`. Meant to be used
>  as the value of `hl-line-range-function`."
>    (save-excursion
>      (cons (progn (vertical-motion 0) (point))
>            (progn (vertical-motion 1) (point)))))

That does seem to work well.  Thanks.

I hope visual-line-mode and hl-line-mode can be made to work 
well together out of the box.

Howard