On 2016-11-18 09:31, Eli Zaretskii wrote: >> From: Tino Calancha >> Date: Fri, 18 Nov 2016 20:15:52 +0900 (JST) >> Cc: Tino Calancha >> >> emacs -Q -eval '(write-region "foo" nil (expand-file-name temporary-file-directory "foo"))' >> M-: (find-file (expand-file-name temporary-file-directory "foo")) RET >> M-: (rename-buffer " foo") RET >> C-x C-b >> ;; Buffer " foo" not listed. >> >> >From the Emacs manual: >> doc/lispref/buffers.texi (Buffer Names): >> Buffers that are ephemeral and generally uninteresting to the user >> have names starting with a space, so that the @code{list-buffers} and >> @code{buffer-menu} commands don't mention them (but if such a buffer >> visits a file, it @strong{is} mentioned). > > Thank. Please add a test for this to the test suite. Could we fix the manual instead? Or do we have evidence that all modes that use temporary buffers visiting files set buffer-file-name to nil to prevent these buffers from being listed? Clément.