From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: delete window help
Date: Tue, 4 Nov 2008 12:42:12 -0800 (PST) [thread overview]
Message-ID: <26df59a1-196b-4c01-8b58-c82a5bebae37@d10g2000pra.googlegroups.com> (raw)
In-Reply-To: 43daba71-dcd5-4471-836b-00a0976c0e3d@j40g2000prh.googlegroups.com
On Nov 4, 9:57 am, bbrady <bryan.br...@gmail.com> wrote:
> Hi,
>
> I want to use the delete-window function to delete a certain window
> without having to switch to that window first. Here is an example:
>
> I start a fresh emacs session. Then I do split-window-horizontally
> ( \C-x 3 ). In the left most window, I then do, split-window ( \C-x
> 2 ). Now I have the following window configuration:
>
> ----------------------
> | | |
> | a | |
> | _____| b |
> | | |
> | c | |
> | | |
> ----------------------
>
> Now I want to change that configuration to:
> ----------------------
> | | |
> | | |
> | a | b |
> | | |
> | | |
> | | |
> ----------------------
>
> There are 2 ways I know of to do this:
> 1) switch to window 'c' and call delete-window
> 2) switch to either window 'a' or 'b' and call delete-other-windows,
> then split-window-horizontally, and switch to the appropriate buffer
> ('b' or 'a', respectively)
>
> I want to do this without switching away from window 'a'. Is this
> possible? I think it is, but I'm not sure how to do it. The delete-
> window function takes an optional argument 'window'. So, I should be
> able to delete whatever window I want, just as long as I have the
> correct 'window'. Any ideas on how I can get the correct 'window'? Or
> any other solutions to this?
give it a argument of 2. Type this:
Ctrl+u 2 Ctrl+x 0
in general, if you want to give a argument to a command, just type Ctrl
+u first then argument, then call the command.
Xah
∑ http://xahlee.org/
☄
next prev parent reply other threads:[~2008-11-04 20:42 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26df59a1-196b-4c01-8b58-c82a5bebae37@d10g2000pra.googlegroups.com \
--to=xahlee@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.