From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bbrady Newsgroups: gmane.emacs.help Subject: delete window help Date: Tue, 4 Nov 2008 09:57:58 -0800 (PST) Organization: http://groups.google.com Message-ID: <43daba71-dcd5-4471-836b-00a0976c0e3d@j40g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225895232 25229 80.91.229.12 (5 Nov 2008 14:27:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2008 14:27:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 05 15:28:14 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 1KxjMh-0008BB-0T for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2008 15:28:11 +0100 Original-Received: from localhost ([127.0.0.1]:47432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxjLZ-0005ag-R0 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2008 09:27:01 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j40g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: 134.134.139.71 Original-X-Trace: posting.google.com 1225821478 18714 127.0.0.1 (4 Nov 2008 17:57:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 4 Nov 2008 17:57:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j40g2000prh.googlegroups.com; posting-host=134.134.139.71; posting-account=jQunyAoAAABmeC5aAzeauMEtO7cU-ghV User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 jfdmzpr02.jf.intel.com Original-Xref: news.stanford.edu gnu.emacs.help:164104 X-Mailman-Approved-At: Wed, 05 Nov 2008 09:22:20 -0500 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:59466 Archived-At: 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