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 19:37:47 +0200 Message-ID: <4BF5736B.1030605@gmx.at> References: <4jwrv35d7a.fsf@fencepost.gnu.org> <878w7fa7cr.fsf@mail.jurta.org> <4BF504B4.50408@gmx.at> 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 1274378313 18778 80.91.229.12 (20 May 2010 17:58:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 17:58:33 +0000 (UTC) Cc: 6204@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 20 19:58:31 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 1OFA0t-0005UU-9n for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 May 2010 19:58:31 +0200 Original-Received: from localhost ([127.0.0.1]:39620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFA0s-0002wj-Je for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 May 2010 13:58:30 -0400 Original-Received: from [140.186.70.92] (port=35558 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF9zS-0002DA-6v for bug-gnu-emacs@gnu.org; Thu, 20 May 2010 13:57:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OF9zQ-0002Kt-CN for bug-gnu-emacs@gnu.org; Thu, 20 May 2010 13:57:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48813) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF9zQ-0002Kn-9N for bug-gnu-emacs@gnu.org; Thu, 20 May 2010 13:57:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OF9h4-00079F-PO; Thu, 20 May 2010 13:38: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 17:38: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.127437708227473 (code B ref 6204); Thu, 20 May 2010 17:38:02 +0000 Original-Received: (at 6204) by debbugs.gnu.org; 20 May 2010 17:38:02 +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 1OF9h3-000792-Aj for submit@debbugs.gnu.org; Thu, 20 May 2010 13:38:01 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OF9h0-00078x-Jn for 6204@debbugs.gnu.org; Thu, 20 May 2010 13:37:59 -0400 Original-Received: (qmail invoked by alias); 20 May 2010 17:37:52 -0000 Original-Received: from 62-47-47-13.adsl.highway.telekom.at (EHLO [62.47.47.13]) [62.47.47.13] by mail.gmx.net (mp022) with SMTP; 20 May 2010 19:37:52 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18FZu8UDwYF+o94ihdE5wPsjkml3VnE0KSWWv+i78 +m6kRHDmVvTY8e User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: 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 13:38: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:37102 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. > > Indeed. A good way would be to provide a way to override pop-up-windows > (both nil and t) in special-display-regexps. We already have > (same-window . t), so we only need to add the other half. In Juri's `switch-to-buffer-other-window' case such options would be useless anyway. >> 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. > > But maybe the user would like to follow the application's special > handling, even tho she modified her pop-up-windows for other reasons. > I think it's much better to use 2 separate variables, where the > user-controlled var is never modified by Elisp code. Applications that do care enough should either (1) use `split-window' and `set-window-buffer' or (2) provide a separate customizable option like `foo-pop-up-windows' and let the user decide whether this should pop up a new window and where. martin