From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: How to bring previous-buffer to cycle through the full list of buffers Date: Sun, 10 May 2015 14:29:58 +0200 Message-ID: <554F4F46.9010609@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1431261037 29725 80.91.229.3 (10 May 2015 12:30:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 May 2015 12:30:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: juergen_hartmann_@hotmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 10 14:30:28 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 1YrQNH-0001mf-V8 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2015 14:30:28 +0200 Original-Received: from localhost ([::1]:33461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrQNH-0002Ac-Cb for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2015 08:30:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrQN5-0002AW-59 for help-gnu-emacs@gnu.org; Sun, 10 May 2015 08:30:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrQN1-0006AP-V9 for help-gnu-emacs@gnu.org; Sun, 10 May 2015 08:30:15 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:53597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrQN1-0006AJ-MD for help-gnu-emacs@gnu.org; Sun, 10 May 2015 08:30:11 -0400 Original-Received: from [194.166.83.72] ([194.166.83.72]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MYLKn-1YmjOS2YGP-00V5UO; Sun, 10 May 2015 14:30:09 +0200 Original-References: DUB124-W2578C885CEB619FED2E775A8DF0@phx.gbl X-Provags-ID: V03:K0:dlF2AQHBrmaR1H4MQgxLjEdwKDzrLukMeFeHZnjFCzwznVhYB/K qE5Vu9MrbpuyYITIEl7UQXBdt/Nvtwv7YFrHMARd6BZHI92mvvsAJDsy2fynUgdpZaFLZua fL+6y9osTAyL0Wgq0tg00Llj2jy7r+AVG8bGkWhX/IM9ceRA/Dwmy4vlbX7UGufaK3Z83jv f1oF4dJeXLL2Fj8TxdK3w== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.22 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:104353 Archived-At: > After the windows history is exhausted by repetitively applying > previous-buffer, the cycling continues with all the other buffers in the > global buffer list, but this time unconditionally skipping those of them that > are visible in other windows--regardless of the setting in > switch-to-visible-buffer. Try to replace the line (if (get-buffer-window buffer frame) with (if (and (not switch-to-visible-buffer) (get-buffer-window new-buffer frame)) in both `switch-to-prev-buffer' and `switch-to-next-buffer' (move these functions to your .emacs if you cannot rebuild Emacs). I didn't test this and don't know whether it has any adversary effect, so you may have to play around with it ;-) martin