From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: managing windows in two frames Date: Fri, 06 Sep 2013 19:14:26 +0200 Message-ID: <522A0D72.5060204@gmx.at> References: <8561uiclrj.fsf@stephe-leake.org> <5225EF0F.1090109@gmx.at> <52260D12.4040002@gmx.at> <5226D26F.7090301@gmx.at> <52274BE9.1010504@gmx.at> <5229B427.9010303@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378487688 5547 80.91.229.3 (6 Sep 2013 17:14:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2013 17:14:48 +0000 (UTC) Cc: Stephen Leake , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 06 19:14:50 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 1VHzcP-00047g-Tn for ged-emacs-devel@m.gmane.org; Fri, 06 Sep 2013 19:14:50 +0200 Original-Received: from localhost ([::1]:39116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHzcP-000296-GK for ged-emacs-devel@m.gmane.org; Fri, 06 Sep 2013 13:14:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHzcF-00026L-In for emacs-devel@gnu.org; Fri, 06 Sep 2013 13:14:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHzc8-0006Df-96 for emacs-devel@gnu.org; Fri, 06 Sep 2013 13:14:39 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:57423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHzc8-0006DO-0C for emacs-devel@gnu.org; Fri, 06 Sep 2013 13:14:32 -0400 Original-Received: from [62.47.37.245] ([62.47.37.245]) by mail.gmx.com (mrgmx102) with ESMTPA (Nemesis) id 0MSHax-1VOPdt3M4p-00TYRB for ; Fri, 06 Sep 2013 19:14:30 +0200 In-Reply-To: X-Provags-ID: V03:K0:PZB1oF5b1BcaAiJRh9V50OQ2lJHlPiiSi4TFWwny6owZwYNeu4t fFx6r3iCGazz6K9XayEx7z684bTkpoUqDW292eaOG8H/oq2S9fzlC1y0lYQ/Mew7emCWLOw d3TO2L9VLzF/N20Sno7csQo9V14GwwiCPWcPr4S0uh06V8CgTkGr8B6eXJ2c0t0/yO4Abw6 pjo/At2EcoRf1r6hOZfDQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 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:163233 Archived-At: > The user's choice has nothing to do with it: let's say Jorge (someone > writing an Elisp package) wants to get the *Help* buffer that shows the > doc of a function, but he doesn't want to display it (e.g. because he > wants to process that buffer's content in some other way). > > The only function he does have is one that displays the buffer > (additionally to filling the buffer with the data I want). > So he wants to trick that function into not displaying the buffer. > > Typically, people use save-window-excursion for that, That's irrational. What's wrong with (let ((display-buffer-function 'ignore)) (describe-function 'ignore)) > but it fails if > the buffer ends up displayed in some other frame (or worse, in a new > frame), which can happen depending on the user's settings. So Jorge > really wants he code to work regardless of any user's customization of > display-buffer, in the same sense that find-file-noselect does not pay > attention to the user's display-buffer settings. If he "sits close enough" to `display-buffer', Jorge can always (1) use `display-buffer-function', (2) `display-buffer-overriding-action', or (3) bind `display-buffer-alist' to do whatever he wants. martin