From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: managing windows in two frames Date: Sat, 07 Sep 2013 08:29:55 -0500 Message-ID: <85wqms4v58.fsf@stephe-leake.org> References: <8561uiclrj.fsf@stephe-leake.org> <5225DB8D.6060709@gmx.at> <858uzcbggs.fsf@stephe-leake.org> <5229B3E7.4070908@gmx.at> <85d2ol57t1.fsf@stephe-leake.org> <522AF3F0.8070801@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378560613 29094 80.91.229.3 (7 Sep 2013 13:30:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Sep 2013 13:30:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 07 15:30:15 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 1VIIad-00041I-EY for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2013 15:30:15 +0200 Original-Received: from localhost ([::1]:42313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIIab-0004FR-05 for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2013 09:30:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIIaS-0004Bt-Vu for emacs-devel@gnu.org; Sat, 07 Sep 2013 09:30:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIIaN-00026r-4T for emacs-devel@gnu.org; Sat, 07 Sep 2013 09:30:04 -0400 Original-Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:9243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIIaN-00026l-0e for emacs-devel@gnu.org; Sat, 07 Sep 2013 09:29:59 -0400 X-Authority-Analysis: v=2.0 cv=V4T/IJbi c=1 sm=0 a=90MK7lSzN9hCuM5ahEFLfw==:17 a=M2z5juievrMA:10 a=yJoioP6_5VwA:10 a=zcTG9qZzcMYA:10 a=o_R75loqY_IA:10 a=9i_RQKNPAAAA:8 a=KGjhK52YXX0A:10 a=Lzix9T0G-1kA:10 a=6rCX6J6_I0Hq9DipXvQA:9 a=90MK7lSzN9hCuM5ahEFLfw==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 75.87.84.149 Original-Received: from [75.87.84.149] ([75.87.84.149:52714] helo=TAKVER) by hrndva-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id A4/5E-26119-65A2B225; Sat, 07 Sep 2013 13:29:58 +0000 In-Reply-To: <522AF3F0.8070801@gmx.at> (martin rudalics's message of "Sat, 07 Sep 2013 11:37:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 71.74.56.122 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:163258 Archived-At: martin rudalics writes: >>> Your approach is two-frames-centric - people might >>> use three frames or more. >> >> Yes, more frames requires more a intelligent filter, or a more >> interactive choice of frame (ie prompting with a list). >> >> But you said my current code is "overly restrictive"; here you are >> proposing adding (user-specified) restrictions, not relaxing them. > > I meant it's restrictive by paying attention only to the first frame of > what `filtered-frame-list' returns. Yes. If it returns more, prompting the user with a list of frames to choose from would be reasonable. Which immediately runs into the issue of what frame & window to use for the buffer containing that list. Since the user has not yet indicated the final frame, one choice is using the first frame returned by `filtered-frame-list' for the prompt buffer, as long as that frame is returned to its original state when the prompt is completed. That could be done by an additional `dont-prompt' parameter to the display-buffer action. Another choice is the minibuffer, using completing-read. But that's not very friendly, since it's hard to see the entire list of available frames. -- -- Stephe