From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lorentey@elte.hu (=?iso-8859-2?Q?L=F5rentey_K=E1roly?=) Newsgroups: gmane.emacs.devel Subject: Re: Buffer listing in multiple frames/ttys Date: Sat, 03 Dec 2005 18:03:36 +0100 Organization: =?iso-8859-2?Q?E=F6tv=F6s_Lor=E1nd?= University (ELTE), Budapest, Hungary Message-ID: References: <87wtinrypp.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1567650025==" X-Trace: sea.gmane.org 1133629845 32622 80.91.229.2 (3 Dec 2005 17:10:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Dec 2005 17:10:45 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 03 18:10:38 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eiatg-0006Ob-2X for ged-emacs-devel@m.gmane.org; Sat, 03 Dec 2005 18:10:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eiath-0003K3-Qo for ged-emacs-devel@m.gmane.org; Sat, 03 Dec 2005 12:10:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eian1-00008o-WC for emacs-devel@gnu.org; Sat, 03 Dec 2005 12:03:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eiamz-0008W3-Vq for emacs-devel@gnu.org; Sat, 03 Dec 2005 12:03:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eiamz-0008Vm-Kp for emacs-devel@gnu.org; Sat, 03 Dec 2005 12:03:09 -0500 Original-Received: from [212.92.23.158] (helo=ninsei.hu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Eian9-0003Pg-QD for emacs-devel@gnu.org; Sat, 03 Dec 2005 12:03:20 -0500 Original-Received: from walrus (walrus.inf.elte.hu [157.181.166.149]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by chatsubo.ninsei.hu (Postfix) with ESMTP id 478431AC52 for ; Sat, 3 Dec 2005 18:02:56 +0100 (CET) Original-Received: by walrus (Postfix, from userid 1000) id 8DDC31018C2; Sat, 3 Dec 2005 18:03:36 +0100 (CET) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.52 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAMAAACPHmKLAAAAM1BMVEU4AACgionl0MpnW1C5 e3yFUE23mnvxuLWCc2fcmpaukoGhaGllOTOTb2t6VlHfw6tRODF/A7ocAAAAAXRSTlMAQObYZgAA AAFiS0dEAIgFHUgAAAIeSURBVHic1ZbrcqswDITxBbANvrz/055dydCkYJL+PJpMyaT6sloJo0zT /xUp/SndhZDSsnwNIZ9IXRif04OGI7N8wzimp5QEU6LWR8A511WAdZH64Mf1kPyFGmLmQeTIPz2w ps+EdLZqkHhElEjJMKy1BzckmgDGuMYAqgx1HiQC8vcezSkzbjA9GMfcGSFQqIIMbQQTqDAfAQQy Y8IZJxUhdZMQpoWxjQK7BDTdKyOI/QLwGoo4c4tIS/fC2PKJgCES7IUprQM5s/z5JIjgP5jNBeDn yM+ltF0JFJez91m+DZ1/I8TBznpAqEb0ek1bUXl3IWAgb2f4GFFeySB7S9o7gR6Jh147rjFKf7cY s2jsv5xzbCUbcxIxrpFvoxL7hZhQPglzEisiyl+Piu6I+YfYlJB0EnJTXic4o08C9JmDIGZJzLcE OmtEQ24ntkAJu26c+xWgE6nqpb2AQEQSdwBaLERmdCNKRD8ApoYjbjh0NRIrOksfax4AUzNCzMf9 npIQcZSPh7QSejrw/Zg3nA8FEEYJHbvMfFmv5+JCmBeCI38CDo2sRcFxrav5LCFGvFfgaQ9036JB Fbmn7AAwUDZYAIcGTtacF5R1/9CxkoXskwil4HjlNFpn1v4mMHQeeQA23c0Cz25FQsinEdRFoC7p 5ncA1goXTJDXj/dUuW9uN60lYl7y+V6JemzCK2Frklj0ApGUuDYO4q3J/wDffCXdfiy3fgAAAABJ RU5ErkJggg== Cancel-Lock: sha1:DtNNqgquvA/10PD80L/sZRqGXPc= 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:46940 Archived-At: --===============1567650025== Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --===-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: multipart/mixed; boundary="==-=-=" --==-=-= Juri Linkov writes: > The current implementation of `buffer-list' frame parameter doesn't > preserve the correct ordering of buffers selected in the same frame. > > After using `next-window' in one frame, `previous-window' in another > frame gets the buffer buried in the first frame, but not in the > same frame where it is called. > > Since two commands `next-window' and `previous-window' make a ring > from the buffer list, this ring becomes broken when used in two or > more frames. I think you mean `next-buffer' and `prev-buffer' here, no? Does this patch fix it? --==-=-= Content-Type: text/x-patch Content-Disposition: inline *** lisp/simple.el~ 2005-11-30 19:55:19.000000000 +0100 --- lisp/simple.el 2005-12-03 16:29:55.000000000 +0100 *************** *** 62,68 **** (defun prev-buffer () "Switch to the previous buffer in cyclic order." (interactive) ! (let ((list (nreverse (buffer-list))) found) (while (and (not found) list) (let ((buffer (car list))) --- 62,70 ---- (defun prev-buffer () "Switch to the previous buffer in cyclic order." (interactive) ! (let ((list (nconc ;; Consider the locally used buffers first. ! (reverse (frame-parameter nil 'buffer-list)) ! (nreverse (buffer-list)))) found) (while (and (not found) list) (let ((buffer (car list))) --==-=-= Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable =2D-=20 K=E1roly --==-=-=-- --=-=-=-- --===-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDkc/o6eoyqA+yej8RAn2LAKC+YxOG8VNAZwAY+vpra57vdb8+LACeOHE5 9ySHbSb20ds4y/H0hAiKuKs= =208t -----END PGP SIGNATURE----- --===-=-=-- --===============1567650025== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1567650025==--