unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* delete window help
@ 2008-11-04 17:57 bbrady
  2008-11-04 20:42 ` Xah
  0 siblings, 1 reply; 13+ messages in thread
From: bbrady @ 2008-11-04 17:57 UTC (permalink / raw)
  To: help-gnu-emacs

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?

Thanks for any help,

bbrady


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-11-06 17:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).