Subject: bug#25656: [PATCH] 25.1; remember-notes-mode makes every temporary buffer created from it unkillable

From: [email-masked]
Date: Fri, 24 Feb 2017 20:16:02 -0500

Vasilij Schneidermann <[email-masked]> writes:

> I wrote a simple patch for merely checking whether the buffer about to
> be killed happens to be the remember-notes buffer.

I think that's a sensible change, but doesn't the fact that
remember-mode adds the hook buffer-locally mean that temp buffers (or
any other buffers) aren't affected?

    (add-hook 'kill-buffer-query-functions 'XXXX nil t)
    (with-temp-buffer
      kill-buffer-query-functions) ;=> (process-kill-buffer-query-function)