From dd7d83e1dbe5c308384f92689d6eb27c9cde1c20 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 30 Mar 2019 14:27:11 +0300 Subject: Fix a thinko in a recent commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * src/buffer.c (Fkill_buffer): Fix last change. (Bug#31138) Reported by Mattias EngdegÄrd . --- src/buffer.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/buffer.c') 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)) -- cgit v1.2.1