emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

display-buffer specification error


From: martin rudalics
Subject: display-buffer specification error
Date: Mon, 19 Dec 2011 17:57:53 +0100
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

`display-buffer' currently has the following specification error: Its
doc-string says that "BUFFER-OR-NAME must be a buffer or the name of an
existing buffer."  This is also the behavior implemented by Emacs 23.

But `display-buffer' calls `window-normalize-buffer-to-display' whose
doc-string says that "If BUFFER-OR-NAME is nil, return the current
buffer.  Else, if a buffer specified by BUFFER-OR-NAME exists, return
that buffer.  If no such buffer exists, create a buffer with the name
BUFFER-OR-NAME and return that buffer."  So the behavior of Emacs 24
diverges from that of Emacs 23 when BUFFER-OR-NAME is nil or names a
non-existent buffer.

Which is the behavior we prefer for Emacs 24?

martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]