all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: How to bring previous-buffer to cycle through the full list of buffers
Date: Sun, 10 May 2015 13:50:07 +0200	[thread overview]
Message-ID: <554F45EF.7020402@easy-emacs.de> (raw)
In-Reply-To: <DUB124-W22BF44D6B6AAECBEC7D71FA8DC0@phx.gbl>


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	other threads:[~2015-05-10 11:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07  8:41 How to bring previous-buffer to cycle through the full list of buffers Jürgen Hartmann
2015-05-07 10:57 ` Andreas Röhler
2015-05-07 14:42   ` Jürgen Hartmann
2015-05-08  6:01     ` Andreas Röhler
2015-05-10  8:47       ` Jürgen Hartmann
2015-05-10 11:50         ` Andreas Röhler [this message]
2015-05-11  7:54           ` Jürgen Hartmann
  -- strict thread matches above, loose matches on Subject: below --
2015-05-10 12:29 martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=554F45EF.7020402@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.