From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: delete window help Date: Thu, 6 Nov 2008 08:30:14 -0800 Message-ID: <006701c9402c$f2ad9290$c2b22382@us.oracle.com> References: <43daba71-dcd5-4471-836b-00a0976c0e3d@j40g2000prh.googlegroups.com><26df59a1-196b-4c01-8b58-c82a5bebae37@d10g2000pra.googlegroups.com><3339f6a0-09b2-4e43-9d31-a2c68bd732a4@b31g2000prb.googlegroups.com><23d20fa2-6078-4d68-a7ab-03d0f2a1c739@p10g2000prf.googlegroups.com><3a7d1076-8b68-4b24-9e4e-b8c2f40f3b8c@b31g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225989070 30342 80.91.229.12 (6 Nov 2008 16:31:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2008 16:31:10 +0000 (UTC) To: "'Chetan'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 17:32:07 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ky7m1-00058G-8y for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2008 17:31:57 +0100 Original-Received: from localhost ([127.0.0.1]:34210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ky7kt-0006Tn-AI for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2008 11:30:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ky7kW-0006Qo-Jo for help-gnu-emacs@gnu.org; Thu, 06 Nov 2008 11:30:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ky7kU-0006QM-Ll for help-gnu-emacs@gnu.org; Thu, 06 Nov 2008 11:30:23 -0500 Original-Received: from [199.232.76.173] (port=50202 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ky7kU-0006QJ-IC for help-gnu-emacs@gnu.org; Thu, 06 Nov 2008 11:30:22 -0500 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:32390 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ky7kU-0007CE-Ag for help-gnu-emacs@gnu.org; Thu, 06 Nov 2008 11:30:22 -0500 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mA6GUeV9004963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 6 Nov 2008 16:30:41 GMT Original-Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mA6GUGkg006576; Thu, 6 Nov 2008 16:30:17 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 06 Nov 2008 16:30:12 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ack/n/wuIrzOkqeaQ5e758nljcymrwAhuA6g X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt703.oracle.com [141.146.40.81] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.49131B97.0136:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59510 Archived-At: > > The problem I have is, how do I figure out what that 'other' > > window is? ... So, I'm looking for a way to not have to cycle > > through all the windows. > > > > Going back to my original example, lets say I'm in window 'c' and I > > want to delete-window 'a' (whereas before I was in window 'a' and > > wanted to delete window 'c').... > > I was working on something similar for myself. It is for doing stuff > visually with emacs windows. There are other things that I wanted to > do, but it can choose a window using arrow keys (or programmatically) > and then delete it or do something else. It works, but it hasn't had > much testing. I could post it if it would be of interest. It would > help me iron out any bugs as well. FWIW, in Icicles, by default: 1. `C-x 0' is bound to a command that does this: a. With no prefix arg, same as vanilla Emacs: delete selected window. b. With a prefix arg, prompt for a (displayed) buffer name; delete its window(s). 2. `C-x o' is bound to a command that does this: a. With no prefix arg, like vanilla Emacs: `other-window', but if the frame has only one window, then `other-frame'. b. With a prefix arg, prompt for a window or frame name (+ [N]) to select. For 2b (`C-u C-x o'): * If the current frame has only one window, then you choose a frame to select, not a window (`C-x 5 o' also does this). * Otherwise, you choose among the frame's windows. With a zero prefix arg, choose windows in all frames. A window name is its buffer name plus, if needed, a unique index: `foo', `foo[2]', `foo[3]'. Similarly, a frame name is its `name' parameter plus, if needed, an index. With a prefix arg, these (`C-x 0' and `C-x o') are multi-commands, which means you can act on (delete or select) any number of windows or frames. Completion, cycling, and direct choice are available. Completion and cycling work together, so you need not cycle through all windows to get to the one you want: your input filters the choices to cycle. http://www.emacswiki.org/cgi-bin/wiki/Icicles