From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: MY window tree! Date: Sat, 13 Jan 2007 01:33:35 +0100 Message-ID: <45A828DF.5080507@gmail.com> References: <87fyafsru9.fsf@lrde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1168648445 26808 80.91.229.12 (13 Jan 2007 00:34:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Jan 2007 00:34:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 13 01:34:03 2007 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 1H5WqH-0004l9-OG for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jan 2007 01:33:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5WqH-0007yl-Iw for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jan 2007 19:33:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H5Wq5-0007v6-Mb for help-gnu-emacs@gnu.org; Fri, 12 Jan 2007 19:33:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H5Wq5-0007th-08 for help-gnu-emacs@gnu.org; Fri, 12 Jan 2007 19:33:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5Wq4-0007tY-R2 for help-gnu-emacs@gnu.org; Fri, 12 Jan 2007 19:33:40 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H5Wq4-0005Cm-4V for help-gnu-emacs@gnu.org; Fri, 12 Jan 2007 19:33:40 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:65365 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H5Wq2-0001F9-49; Sat, 13 Jan 2007 01:33:38 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: =?ISO-8859-1?Q?Micha=EBl_Cadilhac?= In-Reply-To: <87fyafsru9.fsf@lrde.org> X-Antivirus: avast! (VPS 0702-1, 2007-01-11), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H5Wq2-0001F9-49. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1H5Wq2-0001F9-49 7cce80b1e5f2cf29a9584cb2a5fa60ca 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:40270 Archived-At: Michaël Cadilhac wrote: > Hi! > > I've been playing around with window-tree to do the following : > - On M-x foo, a window is created on the extreme left of the frame, > containing a buffer called *Bar*, > - On M-x foo again, with the buffer *Bar* on the left, this window is > removed. > > Problem is, this can't be done with a simple split. So my first idea > was to reduce the frame to one window, split it: left would be *Bar* > and restore the window-tree in the right part. > > Of course, this can't work, because if I use delete-other-windows, the > windows are ... deleted. So, can't be restored. > > I can't find a way to do this simply, and I wonder if there is :-) > > How would you do? Using something like (window-buffer (nth 2 (car (window-tree)))) perhaps?