Next: , Previous: , Up: Creating and Killing Buffers   [Index]


7.4.8.6 kill-buffer-query-functions—a variable

Variable: kill-buffer-query-functions

Before confirming unsaved changes, ‘kill-buffer’ calls the functions in the list ‘kill-buffer-query-functions’, in order of appearance, with no arguments. The buffer being killed is the current buffer when they are called. The idea of this feature is that these functions will ask for confirmation from the user. If any of them returns ‘nil’, ‘kill-buffer’ spares the buffer’s life.