[Top][All Lists]

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

Re: forward-comment and syntax-ppss

From: Stefan Monnier
Subject: Re: forward-comment and syntax-ppss
Date: Sat, 17 Dec 2016 09:41:18 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>> > The idea is to move the user-facing narrowing commands to some other
>> > foundation (like the invisible and maybe intangible text properties),
>> > freeing the narrowing facility for use by the Lisp code.
>> While it might be a good direction, it's not as simple as it sounds,
>> since many uses of the C-x n n command looks like "narrow to the region,
>> and then apply <blabla> to the whole buffer": I think it will be tricky
>> to make overlays that mimick this behavior sufficiently well.
> Do you have an alternative proposal?

Yes, I think it's easier to keep using narrow-to-region for that, but to
supplement the narrowing with some information as to whether widening
that narrowing is permissible or not (along the lines of
font-lock-dont-widen, but not specific to font-lock and allowing
intermediate narrowing so that we can widen the user's narrowing in an
Info buffer without widening all the way to point-min==1).


reply via email to

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