From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.help Subject: Re: rotate split windows Date: Wed, 06 Dec 2006 19:12:28 +0100 Message-ID: <87r6vc7v1v.fsf@gmx.at> References: <87u00bl9mq.fsf@gmx.at> <9oy7pmpsbr.fsf@gonzo.vircinity> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165430526 24565 80.91.229.10 (6 Dec 2006 18:42:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2006 18:42:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 06 19:42:05 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gs1iN-0002Vd-5y for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Dec 2006 19:41:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gs1iM-0008Jt-ME for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Dec 2006 13:41:54 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newshunter!cosy.sbg.ac.at!newsfeed.utanet.at!newsfeed2.utanet.at!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Original-Newsgroups: gnu.emacs.help Cancel-Lock: sha1:YfYNcd89WVnoBuGjCPg97Uu1seA= Original-Lines: 25 Original-NNTP-Posting-Host: news-access-from.tuwien.ac.at Original-X-Trace: 1165428659 tunews.univie.ac.at 10578 192.35.241.118 Original-X-Complaints-To: abuse@tuwien.ac.at Original-Xref: shelby.stanford.edu gnu.emacs.help:143691 Original-To: help-gnu-emacs@gnu.org 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:39293 Archived-At: Marco Wahl writes: > alternative for [...] GNU Emacs 21.3.1 No nice one (you can calculate the split using `window-egdes'): Primitives to look inside of window configurations would make sense, but none are implemented. The code posted by Chris only rotates the buffers and doesn't flip the split as requested; a more concise version: (defun rotate-window-buffers () (interactive) (let* ((ws (window-list)) (bs (mapcar 'window-buffer ws)) (ps (mapcar 'window-point ws)) (w (pop ws))) (dolist (v (append ws `(,w))) (set-window-buffer v (pop bs)) (set-window-point v (pop ps))))) All the best, Markus Triska