From: Markus Triska <triska@gmx.at>
Subject: Re: rotate split windows
Date: Wed, 06 Dec 2006 19:12:28 +0100 [thread overview]
Message-ID: <87r6vc7v1v.fsf@gmx.at> (raw)
In-Reply-To: 9oy7pmpsbr.fsf@gonzo.vircinity
Marco Wahl <mw@visenso.de> 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
next prev parent reply other threads:[~2006-12-06 18:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1515.1165253652.2155.help-gnu-emacs@gnu.org>
2006-12-04 19:54 ` rotate split windows Markus Triska
2006-12-05 10:09 ` Marco Wahl
2006-12-05 21:03 ` Chris Menzel
2006-12-06 18:12 ` Markus Triska [this message]
2006-12-06 21:34 ` Chris Menzel
2006-12-07 8:34 ` wim yedema
[not found] ` <mailman.1633.1165480499.2155.help-gnu-emacs@gnu.org>
2006-12-07 17:35 ` Markus Triska
2006-12-04 13:33 wim yedema
2006-12-04 21:22 ` Dieter Wilhelm
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r6vc7v1v.fsf@gmx.at \
--to=triska@gmx.at \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).