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 03:56:26 -0500 Message-ID: <85d2ol57t1.fsf@stephe-leake.org> References: <8561uiclrj.fsf@stephe-leake.org> <5225DB8D.6060709@gmx.at> <858uzcbggs.fsf@stephe-leake.org> <5229B3E7.4070908@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378544201 23097 80.91.229.3 (7 Sep 2013 08:56:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Sep 2013 08:56:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 07 10:56:45 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 1VIEJv-0006fF-WD for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2013 10:56:44 +0200 Original-Received: from localhost ([::1]:41203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIEJv-0003GN-MK for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2013 04:56:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIEJn-0003G3-Nq for emacs-devel@gnu.org; Sat, 07 Sep 2013 04:56:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIEJh-0007Wh-Td for emacs-devel@gnu.org; Sat, 07 Sep 2013 04:56:35 -0400 Original-Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:29460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIEJh-0007WR-Pf for emacs-devel@gnu.org; Sat, 07 Sep 2013 04:56:29 -0400 X-Authority-Analysis: v=2.0 cv=fJG7LOme 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=RO1ZgvNc4PIpQxmdF28A: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:51142] helo=TAKVER) by hrndva-oedge04.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id C4/61-27973-D3AEA225; Sat, 07 Sep 2013 08:56:29 +0000 In-Reply-To: <5229B3E7.4070908@gmx.at> (martin rudalics's message of "Fri, 06 Sep 2013 12:52:23 +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:163249 Archived-At: martin rudalics writes: >>>> (let* ((frame (car (filtered-frame-list >>> This is overly restrictive. >> >> I'm not clear what you would relax. We don't want the current frame, and >> we want a frame with an available window. >> >> I guess we could allow creating a new window in an existing frame? > > No. But consider the case where a user wants to have one and the same > frame share just *Help* and *info* output and that frame is the car of > filtered-frame-list. So other windows would then be added to it sometimes, which is not what the user wants. A general solution to that sort of problem would require a user-specified filter for picking a frame; it could check if the frame has *Help* and return nil. >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. -- -- Stephe