Fix a thinko in a recent commit

* src/buffer.c (Fkill_buffer): Fix last change.  (Bug#31138)
Reported by Mattias Engdegård <mattiase@acm.org>.
This commit is contained in:
Eli Zaretskii 2019-03-30 14:27:11 +03:00
parent f2c14b2f01
commit dd7d83e1db

View file

@ -1713,10 +1713,12 @@ cleaning up all windows currently displaying the buffer to be killed. */)
/* First run the query functions; if any query is answered no,
don't kill the buffer. */
if (!b->inhibit_buffer_hooks)
tem = CALLN (Frun_hook_with_args_until_failure,
Qkill_buffer_query_functions);
if (NILP (tem))
return unbind_to (count, Qnil);
{
tem = CALLN (Frun_hook_with_args_until_failure,
Qkill_buffer_query_functions);
if (NILP (tem))
return unbind_to (count, Qnil);
}
/* Query if the buffer is still modified. */
if (INTERACTIVE && !NILP (BVAR (b, filename))