From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: pop-up-windows value to force a new window Date: Sat, 2 Sep 2006 13:38:11 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157229521 13579 80.91.229.2 (2 Sep 2006 20:38:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Sep 2006 20:38:41 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 02 22:38:38 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GJcGE-0004rm-2k for ged-emacs-devel@m.gmane.org; Sat, 02 Sep 2006 22:38:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJcGD-0000It-Gt for ged-emacs-devel@m.gmane.org; Sat, 02 Sep 2006 16:38:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJcG0-0000Gv-Ag for emacs-devel@gnu.org; Sat, 02 Sep 2006 16:38:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJcFy-0000G9-Mo for emacs-devel@gnu.org; Sat, 02 Sep 2006 16:38:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJcFy-0000G6-FO for emacs-devel@gnu.org; Sat, 02 Sep 2006 16:38:22 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GJcQ7-0001aa-8V for emacs-devel@gnu.org; Sat, 02 Sep 2006 16:48:51 -0400 Original-Received: from rgmsgw02.us.oracle.com (rgmsgw02.us.oracle.com [138.1.186.52]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k82KcKgu031741 for ; Sat, 2 Sep 2006 14:38:20 -0600 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-80-55.vpn.oracle.com [141.144.80.55]) by rgmsgw02.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k82KcJxv024413 for ; Sat, 2 Sep 2006 14:38:19 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59264 Archived-At: I don't see a good way to force `display-buffer' and related functions to always use another window, even when there is more than one window displayed currently. Is there some way (besides defining `display-buffer-function' in such a way that it does this)? What about letting a special non-nil value of `pop-up-windows', say `new-window', cause this to happen? That is, if `pop-up-windows' = `new-window', then `display-buffer', `pop-to-buffer', etc. would always use a new window; they would never reuse an existing window. This would let Lisp code, for example, bind to that value, and be sure that `display-buffer' etc. will always create a new window. Subsequently deleting that window will not leave fewer windows than before the display. IOW, this would let you use `display-buffer' to always pop up an extra window. This should have no effect on existing code (unless there is some code that already uses that special value).