From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#6204: vc-dir always splits the frame Date: Thu, 20 May 2010 11:45:24 +0200 Message-ID: <4BF504B4.50408@gmx.at> References: <4jwrv35d7a.fsf@fencepost.gnu.org> <878w7fa7cr.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1274349441 1084 80.91.229.12 (20 May 2010 09:57:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 09:57:21 +0000 (UTC) Cc: 6204@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 20 11:57:16 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OF2V6-00048V-41 for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 May 2010 11:57:12 +0200 Original-Received: from localhost ([127.0.0.1]:34204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF2V5-00066Y-IV for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 May 2010 05:57:11 -0400 Original-Received: from [140.186.70.92] (port=54373 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF2Uv-00066T-E4 for bug-gnu-emacs@gnu.org; Thu, 20 May 2010 05:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OF2Ut-0007Z5-55 for bug-gnu-emacs@gnu.org; Thu, 20 May 2010 05:57:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37909) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF2Ut-0007Yx-3S for bug-gnu-emacs@gnu.org; Thu, 20 May 2010 05:56:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OF2KI-0002vC-61; Thu, 20 May 2010 05:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 May 2010 09:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6204-submit@debbugs.gnu.org id=B6204.127434873411220 (code B ref 6204); Thu, 20 May 2010 09:46:02 +0000 Original-Received: (at 6204) by debbugs.gnu.org; 20 May 2010 09:45:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF2Jp-0002uv-Az for submit@debbugs.gnu.org; Thu, 20 May 2010 05:45:33 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OF2Jm-0002uq-Ht for 6204@debbugs.gnu.org; Thu, 20 May 2010 05:45:31 -0400 Original-Received: (qmail invoked by alias); 20 May 2010 09:45:26 -0000 Original-Received: from 62-47-43-79.adsl.highway.telekom.at (EHLO [62.47.43.79]) [62.47.43.79] by mail.gmx.net (mp071) with SMTP; 20 May 2010 11:45:26 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+Uc20YjSSUl+JUsrEasPtszC38RhzGDaNfHEF2a9 B+ELvmFNKpxpeO User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <878w7fa7cr.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 20 May 2010 05:46:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37083 Archived-At: > Now after let-binding `pop-up-windows' to nil around the `pop-to-buffer' > call, what if someone might want to restore the old behavior. I currently use the following semantics for `pop-up-windows': --------------------------------------------------------------- Non-nil means `display-buffer' is allowed to make a new window. A non-empty list specifies the windows `display-buffer' will consider for splitting. The following entries are supported where "frame" refers to the frame chosen to display the buffer: largest ...... largest window lru .......... least recently used window selected ..... frame's selected window root ......... frame's root window The default value t stands for the list `(largest lru)'. This means that `display-buffer' will first try to split the largest window and, if that fails, the least recently used window. --------------------------------------------------------------- The intended use is that an application calling `display-buffer' or `pop-to-buffer' could bind this as (let ((pop-up-windows (if (eq pop-up-windows t) application-dependent-value pop-up-windows))) that is, the default value can be overridden by the application, user customizations are respected. And obviously Lisp code should not call `switch-to-buffer' and its colleagues. martin