bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Howard Melman
Subject: bug#36361: 'hl-line-range-function' as list of choice
Date: Tue, 26 Oct 2021 15:17:52 -0400

> On Oct 26, 2021, at 3:11 PM, Eli Zaretskii <eliz@gnu.org> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]