aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Rudalics2012-03-27 11:22:01 +0200
committerMartin Rudalics2012-03-27 11:22:01 +0200
commitdcb6e7b38ab0a732c18bf80deacc803a03aeb85c (patch)
tree019b49dc83df3700c25fb1cf0697b5f89829664a /doc
parent4fb9a543142d6cdd7760e7bfcad186017fa57ead (diff)
downloademacs-dcb6e7b38ab0a732c18bf80deacc803a03aeb85c.tar.gz
emacs-dcb6e7b38ab0a732c18bf80deacc803a03aeb85c.zip
Optionally avoid that switching to previous or next buffer shows that buffer twice.
* window.el (switch-to-visible-buffer): New option. (switch-to-prev-buffer, switch-to-next-buffer): Observe switch-to-visible-buffer. Make sure that checking for a window showing a buffer already is done on the same frame. * windows.texi (Window History): Describe new option switch-to-visible-buffer.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/windows.texi16
2 files changed, 20 insertions, 1 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index a326117cdce..494e3416d80 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12012-03-27 Martin Rudalics <rudalics@gmx.at>
2
3 * windows.texi (Window History): Describe new option
4 switch-to-visible-buffer.
5
12012-03-27 Glenn Morris <rgm@gnu.org> 62012-03-27 Glenn Morris <rgm@gnu.org>
2 7
3 * searching.texi (String Search): Add xref to Emacs manual. 8 * searching.texi (String Search): Add xref to Emacs manual.
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index b541b2419c8..8df32785036 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -2073,7 +2073,8 @@ or killed or has been already shown by a recent invocation of
2073If repeated invocations of this command have already shown all buffers 2073If repeated invocations of this command have already shown all buffers
2074previously shown in @var{window}, further invocations will show buffers 2074previously shown in @var{window}, further invocations will show buffers
2075from the buffer list of the frame @var{window} appears on (@pxref{The 2075from the buffer list of the frame @var{window} appears on (@pxref{The
2076Buffer List}). 2076Buffer List}) trying to skip buffers that are already shown in another
2077window on that frame.
2077@end deffn 2078@end deffn
2078 2079
2079@deffn Command switch-to-next-buffer &optional window 2080@deffn Command switch-to-next-buffer &optional window
@@ -2087,6 +2088,19 @@ can be undone, this function tries to show a buffer from the buffer list
2087of the frame @var{window} appears on (@pxref{The Buffer List}). 2088of the frame @var{window} appears on (@pxref{The Buffer List}).
2088@end deffn 2089@end deffn
2089 2090
2091By default @code{switch-to-prev-buffer} and @code{switch-to-next-buffer}
2092can switch to a buffer that is already shown in another window on the
2093same frame. The following option can be used to override that behavior.
2094
2095@defopt switch-to-visible-buffer
2096If this variable is non-@code{nil}, @code{switch-to-prev-buffer} and
2097@code{switch-to-next-buffer} may switch to a buffer that is already
2098visible on the same frame, provided the buffer was shown in the argument
2099window before. If it's @code{nil}, @code{switch-to-prev-buffer} and
2100@code{switch-to-next-buffer} always try to avoid switching to a buffer
2101that is already visible in another window on the same frame.
2102@end defopt
2103
2090 2104
2091@node Dedicated Windows 2105@node Dedicated Windows
2092@section Dedicated Windows 2106@section Dedicated Windows