From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: compilation-goto-locus, pop-up-windows, same-window-regexps Date: Mon, 17 Mar 2003 18:41:01 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303172341.h2HNf2YA015261@rum.cs.yale.edu> References: <87vfyjbnhr.fsf@gnu.org> <87d6kqfj72.fsf@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047944551 6810 80.91.224.249 (17 Mar 2003 23:42:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2003 23:42:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Mar 18 00:42:29 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18v4FP-0001lW-00 for ; Tue, 18 Mar 2003 00:42:27 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18v4FP-000087-00 for ; Tue, 18 Mar 2003 00:42:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18v4Et-0002Z6-07 for emacs-devel@quimby.gnus.org; Mon, 17 Mar 2003 18:41:55 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18v4Ee-0002Cv-00 for emacs-devel@gnu.org; Mon, 17 Mar 2003 18:41:40 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18v4E7-0001yk-00 for emacs-devel@gnu.org; Mon, 17 Mar 2003 18:41:08 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18v4E2-0001fJ-00; Mon, 17 Mar 2003 18:41:02 -0500 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h2HNf2Pe015263; Mon, 17 Mar 2003 18:41:02 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h2HNf2YA015261; Mon, 17 Mar 2003 18:41:02 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Original-cc: Alex Schroeder X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12418 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12418 > If you agree with the general argumentation in my previous mail, then > I can go through these places and suggest what to do for each one. > > I think that the question of whether to bind pop-up-windows or obey it > is specific for each instance where this happens. The reason I made > compilation-goto-locus bind it was that I thought that for that > command users would prefer to split the screen, even users who in most > cases do not. If that is true, binding pop-up-windows there was a > good idea. Otherwise, it was not. > > It would be the same kind of question for each other such place. > The answers might not necessarily be the same. > > I think the right solution is to bind pop-up-windows to > (or pop-up-windows compilation-error-pop-up-windows) > where compilation-error-pop-up-windows is a new user option. > That will make everyone happy. Want to do that? I think there's a better solution: use special-display-buffer-names. You can (for example) specify (push '("*Compilation*" (same-window . t)) special-display-buffer-names) to cause (pop-to-buffer "*Compilation*") to prefer reusing the current window. I think using a system along those lines is much better than introducing hundreds of foo-bar-pop-up-windows and foo-bar-pop-up-frames. Of course special-display-buffer-names is intended for users and should initially be nil. So we should create a new var like special-display-defaults. Also I think there's currently only ways to say "stay in the same frame" or "stay in the same window" but no ways to say "use another window" or "use another frame". Stefan