[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] master a94ca83 01/18: swiper.el: Add a work-around for window
From: |
Oleh Krehel |
Subject: |
Re: [elpa] master a94ca83 01/18: swiper.el: Add a work-around for window-start not being current |
Date: |
Mon, 20 Apr 2015 17:19:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> An alternative would be to use `redisplay' to update `window-start' and
>> `window-end', but that causes excessive blinking.
>
> Yes, this sucks. Currently, I think the best mechanism in Emacs to
> perform such highlighting is fontification-functions, but that is used
> by jit-lock. So you could use jit-lock-register, but it would cause
> re-font-locking the (visible part of) the buffer, which also sucks.
>
> jit-lock should ideally be extended to better deal with "multiple
> clients" so that it is able to understand that some parts of the buffer
> have already been handled by some clients (currently, it's all or
> nothing: either jit-lock thinks that a part of the buffer has been
> handled by all clients, or it thinks that it's been handled by none).
It's not a big deal for swiper: in this case, just double the window
height gets overlays, instead of single window height.
The advantage is that I don't have to deal with callbacks and sequencing.
Oleh