jmickelin / vim-empty-lines-mode

Vim-like empty line indicator at end of files for Emacs.
GNU General Public License v3.0
10 stars 3 forks source link

Avoid early set-buffer #6

Closed hchbaw closed 9 years ago

hchbaw commented 9 years ago

I made a mistake that the cloned buffer does not have any indicators anymore.

For example: switch-to-buffer "scratch" and M-x clone-buffer ⇒ The cloned buffer doesn't have any indicators.

Reorder the with-current-buffer…(set-buffer eventually) somehow fixes this in bf24853, and also fixes #5 in a better(?) way that it is not needed to check through same buffer windows in d1a99c1 .

I suspect that to set-buffer before updating the overlays which have the window property also triggers #5, but I'm not sure…

hchbaw commented 9 years ago

This doesn't fix #5 when inactive windows are on inactive frames, I'm very sorry for the noise.