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: Sun, 10 May 2015 13:50:07 +0200 Message-ID: <554F45EF.7020402@easy-emacs.de> References: , , <554B4533.5070103@easy-emacs.de>, , <554C5145.3030500@easy-emacs.de> 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 1431258652 27465 80.91.229.3 (10 May 2015 11:50:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 May 2015 11:50:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 10 13:50:44 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 1YrPkq-0007fO-4x for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2015 13:50:44 +0200 Original-Received: from localhost ([::1]:33246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrPkp-0007ND-8J for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2015 07:50:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrPkW-0007N6-VU for help-gnu-emacs@gnu.org; Sun, 10 May 2015 07:50:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrPkT-00052v-JK for help-gnu-emacs@gnu.org; Sun, 10 May 2015 07:50:24 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:53755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrPkT-00052Z-9o for help-gnu-emacs@gnu.org; Sun, 10 May 2015 07:50:21 -0400 Original-Received: from [192.168.178.31] ([77.3.6.61]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0McRqW-1YZkL50VFY-00Hh9D for ; Sun, 10 May 2015 13:50:19 +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:b8a3fn69rhEx2u10x4itwGuTSzB0Crl+JVuvJNpiqNXXhrVFEtI nFcMXgeIoag/9H/bD3UyI3K2T+fsSskPZUNslvUOnjXA98a6J659kLw6k+bmJJlfrrYk0w1 UHY0xiGsz/Pu+ETLbklQ3IofpkkKSz9dIdFr7WbDH08QUYKlavaa5cND8bweeuB9C6v/479 DC2CDX4iziIxi8FLdQ8nQ== 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:104352 Archived-At: Am 10.05.2015 um 10:47 schrieb Jürgen Hartmann: > Thank you, Andreas Roehler, for your answer: > >> Hmm, when it is about to restore some older windows configuration, >> previous-buffer and the like will not do it, as being volatile. >> >> You could use result of (current-window-configuration) similar to >> registered positions as shown. >> >> Then (set-window-configuration MY-last-window-configuration), now >> jumping to subsequent stores. > Actually, the intention is not to alter the windows configuration at all, > but to change the buffer that one of the windows shows. The latter should be > done by a keystroke that cycles through the whole list of buffers. > > This can nearly be achieved by binding the command previous-buffer so some > suitable key. But this is not the complete solution, since previous-buffer > typically cycles through just some of the buffers, not all of them. > > So it would be great if somebody would know of a command that does that or if > somebody could outline a way to configure, alter, or advice the command > previous-buffer to include all the buffers in its scope. > > Juergen > > In use here is the following: (defun letztpuffer () " " (interactive) (switch-to-buffer (other-buffer))) (global-set-key [(meta +)] 'letztpuffer) Just replace other-buffer... Andreas