Variable: kill-buffer-query-functions

List of functions called with no args to query before killing a buffer.
The buffer being killed will be current while the functions are running.

If any of them returns nil, the buffer is not killed. Functions run by
this hook are supposed to not change the current buffer.