Andy Piper <andy(a)xemacs.org> writes:
>(save-current-window
What's this --^^^^?
I meant save-selected-window
Moreover I can't see any redisplay optimizations you refer to.
Why not?
Sure redisplay doesn't kick in till events trigger, but this
cannot
be true for widgets - you have to modify properties when you are
asked to and this will cause some flicker.
Why can you do make changes to the internal structure and then have
the visual representation sync up with them at with redisplay time?
That is what happens with all the other stuff?
I wonder whether we could do some specific optimization
of this particular case (e.g. not call update-tab-in-gutter if we are in a
window-excursion)?
I looked at that, but save-selected-window is bitch in that (just a
macro).
I still wonder why all that code uses select-window. Maybe there
should be a set-window just like set-buffer vs switch-to-buffer?
Jan