Handle cases where buffer gets killed while running Fkill_buffer (Bug#11665).
authorMartin Rudalics <rudalics@gmx.at>
Mon, 18 Jun 2012 07:20:19 +0000 (09:20 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 18 Jun 2012 07:20:19 +0000 (09:20 +0200)
commitb7e8d081674c24b19c5ee39892a72aef25c1dfcc
treef53f81a0692d7e47235db17bfb51cf6ef2bfd895
parent7ea2b33947b401d506d10bf47721278a2b174410
Handle cases where buffer gets killed while running Fkill_buffer (Bug#11665).

* buffer.c (Fkill_buffer): Don't throw an error when the buffer
gets killed during executing of this function (Bug#11665).  Try
to always return Qt when the buffer has been actually killed.
(Vkill_buffer_query_functions): In doc-string say that functions
run by this hook should not change the current buffer.
src/ChangeLog
src/buffer.c