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: Thu, 07 May 2015 12:57:55 +0200	[thread overview]
Message-ID: <554B4533.5070103@easy-emacs.de> (raw)
In-Reply-To: <DUB124-W2578C885CEB619FED2E775A8DF0@phx.gbl>


Am 07.05.2015 um 10:41 schrieb Jürgen Hartmann:
> I know that in Emacs 24.5, but also earlier versions, there is is the
> variable switch-to-visible-buffer whose default value t causes
> switch-to-prev-buffer, and hence also previous-buffer, to cycle through all
> buffers in the given window's history even if they might be visible in other
> windows.
>
> After the windows history is exhausted by repetitively applying
> previous-buffer, the cycling continues with all the other buffers in the
> global buffer list, but this time unconditionally skipping those of them that
> are visible in other windows--regardless of the setting in
> switch-to-visible-buffer.
>
> Does anyone knows a way to bring previous-buffer to cycle through the whole
> list of buffers regardless of their visibility elsewhere and regardless of
> windows histories?
>
> Any hint is greatly welcome.
>
> Juergen
>
>   		 	   		

Not exactly what you are asking for:

AFAIU it's about to jump back to a certain buffer.

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.

HTH,

Andreas






  reply	other threads:[~2015-05-07 10:57 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 [this message]
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
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=554B4533.5070103@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.