On Mon, Jun 24 2013, martin rudalics wrote: > > * buffer.c (FKill_buffer): Run `kill-buffer-query-functions' > > before checking whether buffer is modified. This lets > > `kill-buffer-query-functions' cancel killing of the buffer or save > > its content before `kill-buffer' asks user the "Buffer %s > > modified; kill anyway?" question. > > We probably should guard against the case that the query functions > manage to kill the buffer prematurely. Except this would exactly defeat the purposes of this change. Unless I don't understand what you mean by “prematurely”. I'm assuming you want to prevent a function from doing: (set-buffer-modified-p nil) (let (kill-buffer-query-functions) (kill-buffer (current-buffer))) or just that part without let. But (set-buffer-modified-p nil) is exactly what remember-notes--kill-buffer-query wants to do (admittedly saving the contents prior). -- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michał “mina86” Nazarewicz (o o) ooo +------------------ooO--(_)--Ooo--