all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#46558: Interaction between font-lock-extend-region-wholelines and font-lock-extend-region-multiline
@ 2021-02-16 12:13 Sébastien Miquel
  2022-06-17 15:19 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Sébastien Miquel @ 2021-02-16 12:13 UTC (permalink / raw)
  To: 46558

Hi,

In org-mode, blocks are fontified with the font-lock-multiline
property. When editing the line right before a block, the whole block
is needlessly refontified (use highlight-refontification-mode to
check).

This is because the font-lock-extend-region-wholelines extends the
region to the beginning of the next line, which has the
font-lock-multiline property. Then font-lock-extend-region-multiline
extends the region to the end of the block.

If a second block follows the first one, with no empty line between,
it is refontified as well.

Maybe font-lock-extend-region-multiline should check if the char
right before font-lock-end has the font-lock-multiline property as
well before extending the region. I've tried it, and haven't found any
issue in this use case.

-- 
Sébastien Miquel






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-19 13:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-16 12:13 bug#46558: Interaction between font-lock-extend-region-wholelines and font-lock-extend-region-multiline Sébastien Miquel
2022-06-17 15:19 ` Lars Ingebrigtsen
2022-06-19 12:56   ` Sébastien Miquel
2022-06-19 13:13     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.