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: Thu, 07 May 2015 12:57:55 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


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 via email to

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