emacs-devel
[Top][All Lists]
Advanced

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

Re: font-lock-fontify-block


From: Eli Zaretskii
Subject: Re: font-lock-fontify-block
Date: Fri, 12 Mar 2021 09:20:29 +0200

> Date: Thu, 11 Mar 2021 21:57:18 +0000
> From: Gregory Heytings <gregory@heytings.org>
> cc: emacs-devel@gnu.org
> 
> 2. That being said, font-lock-fontify-block is not a good solution to that 
> problem, it doesn't work when the yanked text is larger than 16 lines, 
> except of course with a prefix argument.

I guess 16 lines is really beyond anything I ever needed to deal with
in this use case, because I don't remember ever having such problems.

"M-o M-o" is convenient here because I need to remember only a single
command to "fix" any issues with faces, whether it means re-fontify
the block or "un-fontify" it.  I'm okay with any other command to
perform the same duty, as long as its key-binding is convenient to
type ("C-x x ..." is less convenient, because it requires me to
release the Ctrl key half-way through the sequence).

> 4. Is this not something that could/should be done inside yank, with (if 
> font-lock-mode (font-lock-fontify-region (point-min) (point-max)))?

I don't think we can make such behavior changes in yank at this point.
And even if we did, we will never be able to make sure "wrong" faces
aren't left after some command, so a convenient command to fix
fontification will always be needed, IMO.



reply via email to

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