From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: display-buffer specification error Date: Mon, 19 Dec 2011 17:57:53 +0100 Message-ID: <4EEF6D11.2010105@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1324313898 18682 80.91.229.12 (19 Dec 2011 16:58:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2011 16:58:18 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 19 17:58:14 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RcgXW-00022B-Jm for ged-emacs-devel@m.gmane.org; Mon, 19 Dec 2011 17:58:14 +0100 Original-Received: from localhost ([::1]:53589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcgXW-0001jK-0d for ged-emacs-devel@m.gmane.org; Mon, 19 Dec 2011 11:58:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcgXK-0001iK-Kh for emacs-devel@gnu.org; Mon, 19 Dec 2011 11:58:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcgXF-0003Ll-7s for emacs-devel@gnu.org; Mon, 19 Dec 2011 11:58:02 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:60007) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RcgXE-0003LY-RC for emacs-devel@gnu.org; Mon, 19 Dec 2011 11:57:57 -0500 Original-Received: (qmail invoked by alias); 19 Dec 2011 16:57:53 -0000 Original-Received: from 62-47-37-213.adsl.highway.telekom.at (EHLO [62.47.37.213]) [62.47.37.213] by mail.gmx.net (mp031) with SMTP; 19 Dec 2011 17:57:53 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+xuyk15MCxC0A/yJwpjRzRU2s8DY8L8HxKMkMaQe 1i09UW1+HCx8SK User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.23 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146833 Archived-At: `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