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: Andreas Röhler
Subject: Re: How to bring previous-buffer to cycle through the full list of buffers
Date: Sun, 10 May 2015 13:50:07 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


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



reply via email to

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