From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?B?SvxyZ2VuIEhhcnRtYW5u?= Newsgroups: gmane.emacs.help Subject: [Solved] RE: How to bring previous-buffer to cycle through the full list of buffers Date: Mon, 11 May 2015 09:55:35 +0200 Message-ID: References: DUB124-W2578C885CEB619FED2E775A8DF0@phx.gbl, <554F4F46.9010609@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1431330971 561 80.91.229.3 (11 May 2015 07:56:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2015 07:56:11 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 11 09:56:02 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YriZF-0001DM-0b for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2015 09:56:01 +0200 Original-Received: from localhost ([::1]:35977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YriZ9-0004xs-E8 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2015 03:55:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YriYy-0004xX-Cw for help-gnu-emacs@gnu.org; Mon, 11 May 2015 03:55:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YriYr-0005cj-Gh for help-gnu-emacs@gnu.org; Mon, 11 May 2015 03:55:44 -0400 Original-Received: from dub004-omc4s24.hotmail.com ([157.55.2.99]:60188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YriYq-0005cO-Kj for help-gnu-emacs@gnu.org; Mon, 11 May 2015 03:55:36 -0400 Original-Received: from DUB124-W23 ([157.55.2.72]) by DUB004-OMC4S24.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Mon, 11 May 2015 00:55:35 -0700 X-TMN: [JmoM7oagBsuEd5/9eICfhoMvoxRa7eu0] X-Originating-Email: [juergen_hartmann_@hotmail.com] Importance: Normal In-Reply-To: <554F4F46.9010609@gmx.at> X-OriginalArrivalTime: 11 May 2015 07:55:35.0882 (UTC) FILETIME=[DD230AA0:01D08BBF] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 157.55.2.99 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104363 Archived-At: Thank you=2C Martin Rudalics=2C for your solution:=0A= =0A= >> After the windows history is exhausted by repetitively applying=0A= >> previous-buffer=2C the cycling continues with all the other buffers in t= he=0A= >> global buffer list=2C but this time unconditionally skipping those of th= em that=0A= >> are visible in other windows--regardless of the setting in=0A= >> switch-to-visible-buffer.=0A= >=0A= > Try to replace the line=0A= >=0A= > =A0=A0=A0 =A0 (if (get-buffer-window buffer frame)=0A= >=0A= > with=0A= >=0A= > =A0=A0=A0 =A0 (if (and (not switch-to-visible-buffer)=0A= > =A0=A0=A0 =A0=A0=A0 =A0=A0 (get-buffer-window new-buffer frame))=0A= >=0A= > in both `switch-to-prev-buffer' and `switch-to-next-buffer' (move these= =0A= > functions to your .emacs if you cannot rebuild Emacs).=0A= >=0A= > I didn't test this and don't know whether it has any adversary effect=2C= =0A= > so you may have to play around with it =3B-)=0A= >=0A= > martin=0A= =0A= (It should read "buffer" instead of "new-buffer".)=0A= =0A= This is exactly the solution I looked for. And more than that=2C it fully= =0A= respects the setting in switch-to-visible-buffer. Perfect!=0A= =0A= In the tests I performed up to now I could not find any adversary effects. = If=0A= there are some=2C they are well hidden and will hardly be traced back to th= is=0A= modification. :-)=0A= =0A= Thank you very much for that.=0A= =0A= Juergen=0A= =0A= =