all messages for Emacs-related lists mirrored at yhetil.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.