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:
parent
f2c14b2f01
commit
dd7d83e1db
1 changed files with 6 additions and 4 deletions
10
src/buffer.c
10
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))
|
||||
|
|
Loading…
Add table
Reference in a new issue