emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs master + org Wrong type argument: number-or-marker-p


From: Stefan Monnier
Subject: Re: emacs master + org Wrong type argument: number-or-marker-p
Date: Wed, 03 Aug 2022 16:47:17 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>> Then wouldn't it be better to fix the font-locking code to not widen
>> outside bounds explictly specified by redisplay, instead of making
>> `widen' and `narrow-to-region' in effect inoperable in those
>> circumstances?
> 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.

I don't understand what you're talking about.

AFAIK in 99% of the cases, font-lock.el itself widens, then uses the
regexps (which can't widen) and the functions provided by the major mode
almost none of which (with rare exceptions, of course, most of them
historical) will widen since font-lock already did it for them (and
since widening will lead to bugs when used within something like
mmm-mode or mhtml-mode).

I don't see much need to "prevent widening".


        Stefan




reply via email to

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