From: aartist <aartist@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: delete window help
Date: Wed, 5 Nov 2008 08:56:14 -0800 (PST) [thread overview]
Message-ID: <83e1ffc8-b0d8-463a-9214-29186df93ee6@b31g2000prb.googlegroups.com> (raw)
In-Reply-To: 6d9b665f-2128-4123-a1b4-0397f2bc52e4@o4g2000pra.googlegroups.com
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.
next prev parent reply other threads:[~2008-11-05 16:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-04 17:57 delete window help bbrady
2008-11-04 20:42 ` Xah
2008-11-04 21:41 ` bbrady
2008-11-04 22:47 ` aartist
2008-11-05 1:47 ` Xah
2008-11-05 2:20 ` bbrady
2008-11-05 6:39 ` Xah
2008-11-05 16:56 ` aartist [this message]
2008-11-05 21:15 ` bbrady
2008-11-05 22:41 ` Chetan
2008-11-06 0:48 ` bbrady
[not found] ` <u3ai5389e.fsf@myhost.sbcglobal.net>
2008-11-06 17:29 ` bbrady
2008-11-06 16:30 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83e1ffc8-b0d8-463a-9214-29186df93ee6@b31g2000prb.googlegroups.com \
--to=aartist@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).