From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?windows-1252?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: How to bring previous-buffer to cycle through the full list of buffers Date: Thu, 07 May 2015 12:57:55 +0200 Message-ID: <554B4533.5070103@easy-emacs.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1430996336 17711 80.91.229.3 (7 May 2015 10:58:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2015 10:58:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 07 12:58:48 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 1YqJVw-0000S1-Bx for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2015 12:58:48 +0200 Original-Received: from localhost ([::1]:50012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqJVv-0006MG-Tm for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2015 06:58:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqJVk-0006M8-FW for help-gnu-emacs@gnu.org; Thu, 07 May 2015 06:58:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqJVh-00020c-Aj for help-gnu-emacs@gnu.org; Thu, 07 May 2015 06:58:36 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:64407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqJVh-00020L-1j for help-gnu-emacs@gnu.org; Thu, 07 May 2015 06:58:33 -0400 Original-Received: from [192.168.178.31] ([77.12.55.218]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0M6hai-1ZDUgx38Fg-00wX7s for ; Thu, 07 May 2015 12:58:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-Provags-ID: V03:K0:fhol3vdabcV5TUb9LrtuXC6KE4TQ+5hrVtycyZIi8oZDDsfnn6o pVYvpFX5yKuH0ViJucfZT+YUk72VrmiExBmYfdtmJ57dpoBlxA2kGdWWXLG3j0Bc7cnTV6k saxvHe1QHfFpT0wHMibjxtWpTlvCcbn3ne3kI+TvKTqpDW4WuikJxpLu+qH97cxL9SnNijs 4+EQrQ0h+e2iCrcpPSN7w== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.126.187 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:104266 Archived-At: Am 07.05.2015 um 10:41 schrieb Jürgen Hartmann: > I know that in Emacs 24.5, but also earlier versions, there is is the > variable switch-to-visible-buffer whose default value t causes > switch-to-prev-buffer, and hence also previous-buffer, to cycle through all > buffers in the given window's history even if they might be visible in other > windows. > > 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. > > Does anyone knows a way to bring previous-buffer to cycle through the whole > list of buffers regardless of their visibility elsewhere and regardless of > windows histories? > > Any hint is greatly welcome. > > Juergen > > Not exactly what you are asking for: AFAIU it's about to jump back to a certain buffer. In use here are a kind of hard-coded registers. Like that: (defun gehe-zu-register-x (&optional arg) "With C-u: Puffer merken" (interactive "P") (if arg (progn (window-configuration-to-register ?x) (message "%s" "Fenster mit \[C-kp-1] oder \\C-x j x erreichbar")) (jump-to-register ?x) (delete-other-windows) (message "%s" "Mit Arg.: Puffer merken"))) ;;;;; (global-set-key [(control kp-1)] 'gehe-zu-register-x) I.e. C-u C-kp-1 stores it. HTH, Andreas