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

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

Re: delete window help


From: aartist
Subject: Re: delete window help
Date: Wed, 5 Nov 2008 08:56:14 -0800 (PST)
User-agent: G2/1.0

On Nov 5, 1:39 am, Xah <xah...@gmail.com> wrote:
> On Nov 4, 6:20 pm, bbrady <bryan.br...@gmail.com> wrote:
>
>
>
> > 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?
>
> i don't think emacs records which pane a pane is splitted from. Though
> i haven't done any elisp related to display so i might be wrong.
>
> you might be able to write your function so that when a win is split,
> it records the newly created pane with the pane it splitted from...
>
>   Xah
>http://xahlee.org/
>
>

Can you  add the hook to the split window function. That hook is going
to store whatever necessary information, which can be called from the
parent/original  window.


reply via email to

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