From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: display-buffer-alist simplifications Date: Sat, 30 Jul 2011 11:40:18 +0300 Organization: JURTA Message-ID: <87y5zga125.fsf@mail.jurta.org> References: <4E2C9245.1030106@gmx.de> <4E2D34DD.2000607@gmx.at> <4E2D51E5.9020400@gmx.de> <87r55dwomo.fsf@mail.jurta.org> <4E300D81.8080900@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312016110 5976 80.91.229.12 (30 Jul 2011 08:55:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2011 08:55:10 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org To: grischka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 30 10:55:06 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 1Qn5K5-0002iL-9o for ged-emacs-devel@m.gmane.org; Sat, 30 Jul 2011 10:55:05 +0200 Original-Received: from localhost ([::1]:58412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn5K4-0007gZ-LT for ged-emacs-devel@m.gmane.org; Sat, 30 Jul 2011 04:55:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn5K2-0007fP-Bg for emacs-devel@gnu.org; Sat, 30 Jul 2011 04:55:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qn5K0-0006rn-VQ for emacs-devel@gnu.org; Sat, 30 Jul 2011 04:55:02 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:41396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn5K0-0006rg-Im for emacs-devel@gnu.org; Sat, 30 Jul 2011 04:55:00 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 878796E8055; Sat, 30 Jul 2011 01:54:59 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 92C9A451C34B; Sat, 30 Jul 2011 01:54:58 -0700 (PDT) In-Reply-To: <4E300D81.8080900@gmx.de> (grischka's message of "Wed, 27 Jul 2011 15:07:13 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.113.175.8 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:142511 Archived-At: > Why should I delete the main frame when I still want to browse > errors? If a user (not you) accidentally deletes that frame, then `display-buffer' should re-create it. This is how it works for the HTML attribute `target'. It specifies the name of a frame where a page is to be displayed. target="_blank" opens a new frame with no name. target="_self" reuses the current frame. target="_parent" displays the page in the parent frame. target="_top" is equivalent of `delete-other-windows' By assigning a name to a frame via the name attribute, users can refer to it as the "target" of links defined by other elements. Complete documentation of Target semantics is in http://www.w3.org/TR/html4/present/frames.html So after assigning a name to a Emacs frame/window it should be possible to refer to it in the `display-buffer-alist' specification. This could be implemented as a plist like `:target "name"'. In case when a frame/window is not yet created, the specification could also accept additional frame/window parameters (size etc.)