diff options
| author | Martin Rudalics | 2012-03-27 11:22:01 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2012-03-27 11:22:01 +0200 |
| commit | dcb6e7b38ab0a732c18bf80deacc803a03aeb85c (patch) | |
| tree | 019b49dc83df3700c25fb1cf0697b5f89829664a /doc | |
| parent | 4fb9a543142d6cdd7760e7bfcad186017fa57ead (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 16 |
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 @@ | |||
| 1 | 2012-03-27 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * windows.texi (Window History): Describe new option | ||
| 4 | switch-to-visible-buffer. | ||
| 5 | |||
| 1 | 2012-03-27 Glenn Morris <rgm@gnu.org> | 6 | 2012-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 | |||
| 2073 | If repeated invocations of this command have already shown all buffers | 2073 | If repeated invocations of this command have already shown all buffers |
| 2074 | previously shown in @var{window}, further invocations will show buffers | 2074 | previously shown in @var{window}, further invocations will show buffers |
| 2075 | from the buffer list of the frame @var{window} appears on (@pxref{The | 2075 | from the buffer list of the frame @var{window} appears on (@pxref{The |
| 2076 | Buffer List}). | 2076 | Buffer List}) trying to skip buffers that are already shown in another |
| 2077 | window 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 | |||
| 2087 | of the frame @var{window} appears on (@pxref{The Buffer List}). | 2088 | of the frame @var{window} appears on (@pxref{The Buffer List}). |
| 2088 | @end deffn | 2089 | @end deffn |
| 2089 | 2090 | ||
| 2091 | By default @code{switch-to-prev-buffer} and @code{switch-to-next-buffer} | ||
| 2092 | can switch to a buffer that is already shown in another window on the | ||
| 2093 | same frame. The following option can be used to override that behavior. | ||
| 2094 | |||
| 2095 | @defopt switch-to-visible-buffer | ||
| 2096 | If 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 | ||
| 2098 | visible on the same frame, provided the buffer was shown in the argument | ||
| 2099 | window 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 | ||
| 2101 | that 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 |