From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: frames dedicated to buffers, or, always see specific buffers in a specific frame Date: Fri, 12 Apr 2013 12:45:05 -0400 Message-ID: References: <5167D3B7.2080408@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365785116 6905 80.91.229.3 (12 Apr 2013 16:45:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 16:45:16 +0000 (UTC) Cc: martin rudalics , "help-gnu-emacs@gnu.org List" , emacs-devel@gnu.org To: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 12 18:45:20 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UQh6F-0000vR-Pf for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 18:45:19 +0200 Original-Received: from localhost ([::1]:36504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQh6F-0006V7-EC for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 12:45:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQh68-0006Uz-BD for emacs-devel@gnu.org; Fri, 12 Apr 2013 12:45:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQh62-0003ho-UR for emacs-devel@gnu.org; Fri, 12 Apr 2013 12:45:12 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:30049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQh62-0003hG-QL; Fri, 12 Apr 2013 12:45:06 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxIEd/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFFFxIEd/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="7274510" Original-Received: from 69-196-129-29.dsl.teksavvy.com (HELO pastel.home) ([69.196.129.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Apr 2013 12:45:02 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6ACA267B10; Fri, 12 Apr 2013 12:45:05 -0400 (EDT) In-Reply-To: (=?iso-8859-1?Q?=22Jo=E3o_T=E1vora=22's?= message of "Fri, 12 Apr 2013 13:12:55 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:158862 gmane.emacs.help:90125 Archived-At: >> Other from that I don't see anything hackish with your approach if the >> idea is to make `switch-to-buffer' do what you want when it's called >> from other code (which ideally should not happen). In this case you >> might also want to advice `switch-to-buffer-other-window' accordingly. I don't see why that would be necessary: switch-to-buffer-other-window calls display-buffer (well, pop-to-buffer) so it should honor display-buffer-alist. > Ideally I would want anywthing with the meaning "switch to some > buffer" (be it `pop-to-buffer', `switch-to-buffer-other-window`, > `display-buffer`, etc...) to be be hookable at some common point, much > as is already done with `display- buffer'. Other than switch-to-buffer they all go through display-buffer and obey the display-buffer-* hooks. switch-to-buffer is special because there are various circumstances where it's more important for it to only affect the selected-window then it is to display the specified buffer. > Specifically, how can I prevent `display-buffer' from stopping at one of > the actions that I specify in `display-buffer-alist'? Don't return nil? More specifically, your joaot/browse-buffer-in-special-frame should return the window it used to display the buffer. Stefan