summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 2c02ffacc1d..adcd03127da 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1360,7 +1360,8 @@ with SIGHUP. */)
/* First run the query functions; if any query is answered no,
don't kill the buffer. */
arglist[0] = Qkill_buffer_query_functions;
- if (NILP (Frun_hook_with_args_until_failure (1, arglist)))
+ tem = Frun_hook_with_args_until_failure (1, arglist);
+ if (NILP (tem))
return unbind_to (count, Qnil);
/* Then run the hooks. */
@@ -1723,9 +1724,6 @@ do not put this buffer at the front of the list of recently selected ones. */)
}
}
Fset_buffer (buf);
- if (NILP (norecord))
- /* Why bother ? Fselect_window will do it for us anyway. -stef */
- record_buffer (buf);
Fselect_window (Fdisplay_buffer (buf, other_window, Qnil), norecord);
return buf;
}