From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: delete window help Date: Tue, 4 Nov 2008 12:42:12 -0800 (PST) Organization: http://groups.google.com Message-ID: <26df59a1-196b-4c01-8b58-c82a5bebae37@d10g2000pra.googlegroups.com> References: <43daba71-dcd5-4471-836b-00a0976c0e3d@j40g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1225834926 23448 80.91.229.12 (4 Nov 2008 21:42:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2008 21:42:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 04 22:43:09 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KxTfy-00042N-2v for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 22:43:02 +0100 Original-Received: from localhost ([127.0.0.1]:38744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxTer-0005KW-6d for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 16:41:53 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d10g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1225831332 15006 127.0.0.1 (4 Nov 2008 20:42:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 4 Nov 2008 20:42:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d10g2000pra.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164110 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59448 Archived-At: On Nov 4, 9:57 am, bbrady 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 =E2=88=91 http://xahlee.org/ =E2=98=84