emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs master, faces with :extend t let cursor vanish at EOL?!


From: Eli Zaretskii
Subject: Re: Emacs master, faces with :extend t let cursor vanish at EOL?!
Date: Thu, 31 Oct 2019 19:10:33 +0200

> From: Eric S Fraga <address@hidden>
> Date: Thu, 31 Oct 2019 16:55:47 +0000
> 
> #+begin_src emacs-lisp
>   (defun esf/get-visual-line-range ()
>     (let (b e r)
>       (save-excursion
>         (beginning-of-visual-line)
>         (setq b (point))
>         (end-of-visual-line)
>         (setq e (point))
>         ;; (setq e (+ 1 (point)))
>         ;; (beginning-of-line)
>         ;; (setq r (point))                  ;real beginning of line
>         ;; (if (< r b) (setq b (+ b 1)))     ;adjust to avoid extension 
> backwards
>         )
>       (cons b e)))
>   (setq hl-line-range-function #'esf/get-visual-line-range)
> #+end_src
> 
> If I uncomment the first commented line, and comment out the one above,
> I get the hl-line face extended very nicely to the edge of the window
> *but* my cursor disappears if it is past the last text character on the
> line.  If I keep the code as it is, the hl-line face only covers the
> text, it is not extended, and the cursor is visible.

I cannot reproduce any of this, sorry.  Could you please show a step
by step recipe, starting from "emacs -Q", then evaluating your
function, loading hl-line, turning it on, etc. -- whatever needs to be
done to reproduce the problem, with all the details?

Thanks.



reply via email to

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