help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delete window help


From: Chetan
Subject: Re: delete window help
Date: Wed, 05 Nov 2008 14:41:44 -0800
User-agent: Emacs Gnus

bbrady <bryan.brady@gmail.com> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]