AdamNiederer / cov

An emacs extension for displaying coverage data on your code
GNU General Public License v3.0
76 stars 16 forks source link

Do not assume buffer names in tests #26

Closed snogge closed 4 years ago

snogge commented 4 years ago

If there already was a buffer named "test", the new buffer would be named something else like "test<2>". The kill-buffer call would then kill some unrelated buffer instead of the intended one. Killing the buffer inside with-current-buffer allows for buffers with any name.

AdamNiederer commented 4 years ago

Good catch; thanks!