read-buffer-kill-buffer: error when no buffer selected