alphapapa / topsy.el

Simple sticky header showing definition beyond top of window
GNU General Public License v3.0
100 stars 6 forks source link

Avoid duplication in the header at beginning of buffer #4

Closed aspiers closed 3 years ago

aspiers commented 3 years ago

Fixes #2

aspiers commented 3 years ago

This is not perfect, because when we don't have anything to show in the header, it would be nicer to hide it altogether. But after experimenting with '(:eval ...) I couldn't figure out a way to achieve that.

aspiers commented 3 years ago

I guess it could be done by dynamically setting header-line-format to nil, but then how would it get set back again? I guess maybe via pre-redisplay-functions or similar?

alphapapa commented 3 years ago

Thanks. :)

I think it might be better to not hide the header at BOB, because I guess that would cause buffer text to jump around an extra line.