unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25656: 25.1; remember-notes-mode makes every temporary buffer created from it unkillable
@ 2017-02-08 23:12 Vasilij Schneidermann
  2017-02-24  7:40 ` bug#25656: [PATCH] " Vasilij Schneidermann
  2017-02-25 12:15 ` Vasilij Schneidermann
  0 siblings, 2 replies; 6+ messages in thread
From: Vasilij Schneidermann @ 2017-02-08 23:12 UTC (permalink / raw)
  To: 25656

I wrote an Emacs package that takes an Org file, processes it with Org's
element API and exports to a file.  Later I've noticed that if I use it
on an Org buffer created with remember-notes-mode, it creates ~500
temporary buffers that cannot be killed.  Bisection reveals that this is
the fault of `remember-notes--kill-buffer-query` which is added locally
to `kill-buffer-query-functions` and returns nil if
`remember-notes-bury-on-kill` hasn't been customized.

This raises an interesting question, should a temporary buffer as
created by `with-temp-buffer` let-bind potentially troublesome hooks
including, but not limited to `kill-buffer-query-functions`?  Another
example coming to mind is `buffer-list-update-hook`, adding a function
to it that scans the buffer list makes creating and killing temporary
buffers an expensive action.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-25 12:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-08 23:12 bug#25656: 25.1; remember-notes-mode makes every temporary buffer created from it unkillable Vasilij Schneidermann
2017-02-24  7:40 ` bug#25656: [PATCH] " Vasilij Schneidermann
2017-02-25  1:16   ` npostavs
2017-02-25  9:47     ` Vasilij Schneidermann
2017-02-25 12:12     ` Vasilij Schneidermann
2017-02-25 12:15 ` Vasilij Schneidermann

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).