all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chetan'" <Chetan.xspam@xspam.sbcglobal.net>, <help-gnu-emacs@gnu.org>
Subject: RE: delete window help
Date: Thu, 6 Nov 2008 08:30:14 -0800	[thread overview]
Message-ID: <006701c9402c$f2ad9290$c2b22382@us.oracle.com> (raw)
In-Reply-To: <u4p2lg5hz.fsf@myhost.sbcglobal.net>

> > The problem I have is, how do I figure out what that 'other'
> > window is? ... 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 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. 

FWIW, in Icicles, by default:

1. `C-x 0' is bound to a command that does this:

a. With no prefix arg, same as vanilla Emacs:
   delete selected window.
b. With a prefix arg, prompt for a (displayed) buffer name;
   delete its window(s).

2. `C-x o' is bound to a command that does this:

a. With no prefix arg, like vanilla Emacs: `other-window',
   but if the frame has only one window, then `other-frame'.
b. With a prefix arg, prompt for a window or frame name
   (+ [N]) to select.

For 2b (`C-u C-x o'):

* If the current frame has only one window, then you choose a
  frame to select, not a window (`C-x 5 o' also does this).
* Otherwise, you choose among the frame's windows.
  With a zero prefix arg, choose windows in all frames.

A window name is its buffer name plus, if needed, a unique index: `foo',
`foo[2]', `foo[3]'. Similarly, a frame name is its `name' parameter plus, if
needed, an index.

With a prefix arg, these (`C-x 0' and `C-x o') are multi-commands, which means
you can act on (delete or select) any number of windows or frames. Completion,
cycling, and direct choice are available. Completion and cycling work together,
so you need not cycle through all windows to get to the one you want: your input
filters the choices to cycle.

http://www.emacswiki.org/cgi-bin/wiki/Icicles





      parent reply	other threads:[~2008-11-06 16:30 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
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 message]

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='006701c9402c$f2ad9290$c2b22382@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=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.
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.