all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: juergen_hartmann_@hotmail.com
Cc: 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 14:29:58 +0200	[thread overview]
Message-ID: <554F4F46.9010609@gmx.at> (raw)

 > 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.

Try to replace the line

	  (if (get-buffer-window buffer frame)

with

	  (if (and (not switch-to-visible-buffer)
		   (get-buffer-window new-buffer frame))

in both `switch-to-prev-buffer' and `switch-to-next-buffer' (move these
functions to your .emacs if you cannot rebuild Emacs).

I didn't test this and don't know whether it has any adversary effect,
so you may have to play around with it ;-)

martin



             reply	other threads:[~2015-05-10 12:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-10 12:29 martin rudalics [this message]
2015-05-11  7:55 ` [Solved] RE: How to bring previous-buffer to cycle through the full list of buffers Jürgen Hartmann
  -- strict thread matches above, loose matches on Subject: below --
2015-05-07  8:41 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
2015-05-11  7:54           ` Jürgen Hartmann

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=554F4F46.9010609@gmx.at \
    --to=rudalics@gmx.at \
    --cc=help-gnu-emacs@gnu.org \
    --cc=juergen_hartmann_@hotmail.com \
    /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.