]> code.delx.au - gnu-emacs-elpa/commit
Rely on window-scroll-functions for scroll blinks
authorTassilo Horn <tsdh@gnu.org>
Thu, 15 Oct 2015 08:55:27 +0000 (10:55 +0200)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Thu, 15 Oct 2015 13:26:50 +0000 (14:26 +0100)
commit849bc3984f2d02586b4f83988a71d00fb01264d5
treeab18b0433354c6a156c834878c34baed6ea51011
parent4a7079ec1338a71c3ccb9343ce93198509294737
Rely on window-scroll-functions for scroll blinks

window-scroll-functions are run before the window actually scrolls.  So
just set a flag that it did so which is then picked up and cleared by
beacon--post-command.  Then the redisplay isn't needed there, although
seldomly it seems post-command-hook is run before
window-scroll-functions.  However, the redisplay in beacon--post-command
caused extreme slowdowns when repeatedly deleting text by pressing and
holding DEL in AUCTeX because (I think) every deleted char caused
fontification.

Also fix a problem where the blink occured in the current window whereas
some other window was scrolled, e.g., with the mouse or
scroll-other-window.
beacon.el