From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chetan Newsgroups: gmane.emacs.help Subject: Re: delete window help Date: Wed, 05 Nov 2008 14:41:44 -0800 Organization: Noname Inc. Message-ID: 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 X-Trace: ger.gmane.org 1225928445 20445 80.91.229.12 (5 Nov 2008 23:40:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2008 23:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 00:41:48 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 1Kxs0R-0005id-Lx for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2008 00:41:48 +0100 Original-Received: from localhost ([127.0.0.1]:44619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxrzK-0003eH-Hm for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2008 18:40:38 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news.alt.net!newshub.sdsu.edu!flpi089.ffdc.sbc.com!prodigy.net!flpi088.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!nlpi065.nbdc.sbc.com.POSTED!8e1d8614!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Emacs Gnus Cancel-Lock: sha1:e6cU0WJsGmnndHgiKxilcC4dBO4= Original-Lines: 41 Original-NNTP-Posting-Host: 75.36.182.251 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: nlpi065.nbdc.sbc.com 1225924906 ST000 75.36.182.251 (Wed, 05 Nov 2008 17:41:46 EST) Original-NNTP-Posting-Date: Wed, 05 Nov 2008 17:41:46 EST X-UserInfo1: TSU[@IONEJVOBTLZOZKN^_TDFZ\@@FXLM@TDOCQDJ@_@FNHCYFWUQBKZQLYJX\_ITFD_KFVLUN[DOM_A_NSYNWPFWNS[XV\I]PZ@BQ[@CDQDPCL^FKCBIPC@KLGEZEFNMDYMKHRL_YYYGDSSODXYN@[\BK[LVTWI@AXGQCOA_SAH@TPD^\AL\RLGRFWEARBM Original-Xref: news.stanford.edu gnu.emacs.help:164152 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:59486 Archived-At: bbrady writes: > Xah, Thanks for your in-depth response. > > I am familiar with macros and am not opposed to using a macro for this > problem. In fact, I have keyboard macros defined for splitting/ > switching windows similar to yours (I stumbled across your website > some time ago). However, my original question was slightly more > complicated than the one I posted -- I came up with simplified version > in order to explain it more easily. > > So, here's the more complicated part: > > The window configuration isn't always the same as the one I gave in > the first post. A lot of times I'll split a window temporarily and > work in one of them, while refering to the other. Then, that other > window will no longer be useful for me, and I want to kill it without > switching from the current window. The problem I have is, how do I > figure out what that 'other' window is? Depending on the order in > which I created the windows, and which window I'm in, using Ctrl-x o > (or Alt+s) might not put me in the correct window. 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 can't just switch-window, because > that'll take me to window 'b'. I have to cycle through (in this case, > its only one window, but in general, it can be a lot of windows). So, > is there a way to find a "parent window" so that I know what to pass > to the delete-window function? > > bbrady 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. Chetan