I use the
ace-window package to move focus from one Emacs window to another. It uses the built-in function
window-start to decide where to place an overlay that contains a number I would type to jump to that window. That is, to make that window (and the frame containing it) the focus of input.
Sometimes, a window will not display a number, making me guess how to get to it.
window-start function is supposed to return the character position in the buffer that is the top-left visible position in that window.
It seems that
window-start sometimes returns the position in that window's buffer that is one line above the actual first-displayed position. So,
ace-window dutifully displays the number in a place that is not visible.
Has anyone else experienced this? Does anyone have suggestions on how I could fix it?
- Could it be thrown off by lines with unusual line-height such as those containing special glyphs like
HEAVY CHECK MARK?
- Could it be caused by unusual fringes or a header-line?
[One buffer where I experienced this, had some lines with extra-tall characters. Another was an
info buffer that had a header-line.]