[Top][All Lists]

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

Re: forward-comment and syntax-ppss

From: Dmitry Gutov
Subject: Re: forward-comment and syntax-ppss
Date: Sat, 17 Dec 2016 02:18:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Thunderbird/50.0

On 17.12.2016 01:08, Stefan Monnier wrote:

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.

I suppose it would break that usage, yes.

mark-whole-buffer should still work, though, as well as command sequences that use it. Or if it doesn't, we could provide a replacement command on that same binding. And some getters, like visible-area-beginning and visible-area-end, for functions that know that they want to act on user-mode narrowing (*).

Someone who actually uses narrowing interactively should weigh in on how costly that transition might be.

(*) Not sure if that leads to the similar problems as we have now, though, like some basic code not knowing whether to use point-min or visible-area-beginning.

reply via email to

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