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: Fri, 08 May 2015 08:01:41 +0200 [thread overview]
Message-ID: <554C5145.3030500@easy-emacs.de> (raw)
In-Reply-To: <DUB124-W1152B1E004483A353EC479A8DF0@phx.gbl>
Am 07.05.2015 um 16:42 schrieb Jürgen Hartmann:
> Thank you, Andreas Roehler, for your suggestion:
>
>> Not exactly what you are asking for:
>>
>> AFAIU it's about to jump back to a certain buffer.
> Not exactly, I meant cycling through all available buffers.
>
>> 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.
> This implements a nice bookmark functionality. But as said before, my focus
> is on cycling trough all buffers. It is very much like previous-buffer already
> does, but it should bring up all buffers.
>
> The background is that I typically have a more or less fixed arrangement of
> windows--one larger one on the right half of the screen to do the actual edit
> stuff, some smaller ones in a vertical split of the left hand side--and just
> want to quickly alter the buffer that any of these windows shows.
>
> Of course one could use switch-to-buffer and enter the respective buffer's
> name, but if there are not so much buffers it is faster to quickly cycle
> through all of them until the right one is shown.
>
>> HTH,
>>
>> Andreas
> Thank you very much.
>
> Juergen
>
>
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.
Cheers,
Andreas
next prev parent reply other threads:[~2015-05-08 6:01 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 [this message]
2015-05-10 8:47 ` Jürgen Hartmann
2015-05-10 11:50 ` Andreas Röhler
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=554C5145.3030500@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.