From: Eli Zaretskii Date: Sat, 30 Mar 2019 11:27:11 +0000 (+0300) Subject: Fix a thinko in a recent commit X-Git-Tag: emacs-27.0.90~3296 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dd7d83e1dbe5c308384f92689d6eb27c9cde1c20;p=emacs.git Fix a thinko in a recent commit * src/buffer.c (Fkill_buffer): Fix last change. (Bug#31138) Reported by Mattias EngdegÄrd . --- diff --git a/src/buffer.c b/src/buffer.c index 8bdc30300ba..7c4691e52c0 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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))