From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Include buffer-move.el Date: Wed, 15 Aug 2007 11:23:43 +0100 Message-ID: References: <87vebhzndq.fsf@jurta.org> <7dbe73ed0708150001t7c6ad1b3k9a69de992db8b88b@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187173485 19073 80.91.229.12 (15 Aug 2007 10:24:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2007 10:24:45 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 15 12:24:40 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ILG3K-00018q-0r for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2007 12:24:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILG3I-0005Cx-Hf for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2007 06:24:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILG3E-0005Cf-I2 for emacs-devel@gnu.org; Wed, 15 Aug 2007 06:24:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILG3D-0005BV-4B for emacs-devel@gnu.org; Wed, 15 Aug 2007 06:24:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILG3C-0005BJ-UY for emacs-devel@gnu.org; Wed, 15 Aug 2007 06:24:30 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ILG3B-00037b-79 for emacs-devel@gnu.org; Wed, 15 Aug 2007 06:24:29 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ILG2h-00044U-46 for emacs-devel@gnu.org; Wed, 15 Aug 2007 12:23:59 +0200 Original-Received: from accountslaptop.gradunion.cam.ac.uk ([193.60.92.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Aug 2007 12:23:59 +0200 Original-Received: from sdl.web by accountslaptop.gradunion.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Aug 2007 12:23:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: accountslaptop.gradunion.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAG1BMVEUAAAA9Cgm3Hx1WWFWA gn+WmJWsrqv4+vcCAwCRl2MkAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAYoA AAGKATOXMFgAAAAHdElNRQfXAQwDNR+ZJmElAAABIklEQVQoz22SPW+DQAyGWUq65qasd9PNUSX4 AZHK2C1rJy5jpDS4IwRVup9dn7GNafpKIPPgzztXFSujqq1eM2n8h22oMkvxI/i9C97kRfMRUN55 dS3BrsAwBXUtMLAO4lryh8kTjOxKpQNniNxAgZOEe4bZwsDTFhKdqZRLNII4OQNHhEuq/RMkm6Cj TnnEA/fk0BorcYn5qA3oaeAxbaBOLrX+9G48NZ2Fzc2tzDM8Q+tMypEOqYHh8mAWaaK3U/cDMOT5 aMZMABgPXc7zPMs1A8DXO756GFJ/4fMEq47hTsAdn5avoxZ4ywl0c2w4Flu2Ybeyb3S+EqxX2DYA H8veJGEDTnHnrXvRaPyt+2kSfK6rfBZ2tUtfP/mR+pR6sX8BUZ/cDV7tvkoAAAAASUVORK5CYII= User-Agent: Gnus/5.110007 Emacs/23.0.0 (20070727) Fedora 7 (gnu/linux) Cancel-Lock: sha1:J1lfTbN59+M3HUCO54rJrOWO6PA= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76562 Archived-At: On 2007-08-15 08:01 +0100, Mathias Dahl wrote: >> I think we should indeed add this functionality to windmove.el. > > A similar function was discussed a while ago in gnu.emacs.help > (subject "rotate split windows") and a simple solution developed: > > http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/5197a0895413ee6c/443d6b1f25e0c585?lnk=gst&q=rotate+buffer&rnum=2#443d6b1f25e0c585 > > The difference is that the buffers are rotated, so you cannot do > exactly what buffer-move seems to do. I thought I should mention it > however in case people like that better. I copied the code here for convenience. (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))))) -- Leo (GPG Key: 9283AA3F) Gnus is one component of the Emacs operating system.