|
From: | Po Lu |
Subject: | Re: emacs master + org Wrong type argument: number-or-marker-p |
Date: | Wed, 03 Aug 2022 20:07:16 +0800 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes: > How would that work in practice? Font-locking code uses functions and > regexps provided by the major modes, so it cannot by itself prevent > widening. Many major modes want their fontification to start from the > beginning of the line, which can be very far in a buffer with long > lines; and quite a few major modes use code that widens to BOB. > > What can font-lock do to prevent that? But not every piece of code widens and scans from BOB to EOL. The idea is to change all problematic code in Emacs to only widen to limits placed by redisplay, instead of changing widen and narrow-to-region themselves.
[Prev in Thread] | Current Thread | [Next in Thread] |