unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Chetan <Chetan.xspam@xspam.sbcglobal.net>
To: help-gnu-emacs@gnu.org
Subject: Re: delete window help
Date: Wed, 05 Nov 2008 14:41:44 -0800	[thread overview]
Message-ID: <u4p2lg5hz.fsf@myhost.sbcglobal.net> (raw)
In-Reply-To: 3a7d1076-8b68-4b24-9e4e-b8c2f40f3b8c@b31g2000prf.googlegroups.com

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


  parent reply	other threads:[~2008-11-05 22:41 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
2008-11-05 21:15             ` bbrady
2008-11-05 22:41         ` Chetan [this message]
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=u4p2lg5hz.fsf@myhost.sbcglobal.net \
    --to=chetan.xspam@xspam.sbcglobal.net \
    --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).