unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* kill-buffer calls frame's buffer-predicate for all buffers even if the killed buffer was not shown in any window.
@ 2017-01-15 19:32 Constantin Kulikov
  2017-01-15 20:31 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Constantin Kulikov @ 2017-01-15 19:32 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 373 bytes --]

For example:

emacs -Q

M-: (set-frame-parameter nil 'buffer-predicate #'(lambda (b) (message
"f-b-p: %s" b))) RET
M-: (with-temp-buffer nil) RET
C-x b *Messages* RET

See that all buffers listed except of the *temp*(no window buffers were
changed). Why?
This is inefficient, especially for the with-temp-buffer which is used very
frequently in emacs and in side packages.

[-- Attachment #2: Type: text/html, Size: 761 bytes --]

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

end of thread, other threads:[~2017-01-18 15:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-15 19:32 kill-buffer calls frame's buffer-predicate for all buffers even if the killed buffer was not shown in any window Constantin Kulikov
2017-01-15 20:31 ` Eli Zaretskii
2017-01-16  8:14   ` Constantin Kulikov
2017-01-16 16:26     ` Eli Zaretskii
2017-01-16 16:55       ` Eli Zaretskii
2017-01-16 22:21       ` Constantin Kulikov
2017-01-17 14:26         ` Stefan Monnier
2017-01-17 14:40         ` Constantin Kulikov
2017-01-18 10:03           ` Constantin Kulikov
2017-01-18 15:43             ` Eli Zaretskii

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).