help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to bring previous-buffer to cycle through the full list of buffe


From: Jürgen Hartmann
Subject: RE: How to bring previous-buffer to cycle through the full list of buffers
Date: Mon, 11 May 2015 09:54:08 +0200

@ Andreas Roehler: Thank you for your continuous effort in this topic:

>> 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.
>>
>> [...]
>> 
>> 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.
> 
> In use here is the following:
>
> (defun letztpuffer ()
>    " "
>    (interactive)
>    (switch-to-buffer (other-buffer)))
>
> (global-set-key [(meta +)] 'letztpuffer)
>
> Just replace other-buffer...
>
> Andreas

This function toggles between the current and the other buffer, so it can not
be used to reach all the buffers in the global list unless there are just two
of them.

Unfortunately I don't have a clue by what other-buffer should be replaced to
get the desired cycling behavior that includes all buffers.

Juergen

                                          


reply via email to

[Prev in Thread] Current Thread [Next in Thread]