diff options
| author | Nicolas Richard | 2016-03-01 12:33:05 +0100 |
|---|---|---|
| committer | Nicolas Richard | 2016-03-10 10:44:08 +0100 |
| commit | 2d382515bfdb44d585bda6515f8d03f9056a83ef (patch) | |
| tree | 2621ef82726cc75af6d82bdffdac4eac9c1e7f46 /doc | |
| parent | f0b31080140217bf90772a39c66088069f466d8b (diff) | |
| download | emacs-2d382515bfdb44d585bda6515f8d03f9056a83ef.tar.gz emacs-2d382515bfdb44d585bda6515f8d03f9056a83ef.zip | |
Add new function display-buffer-reuse-mode-window
* lisp/window.el (display-buffer-reuse-mode-window): New function.
* doc/lispref/windows.texi (Display Action Functions): Document it.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/windows.texi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index f215eb727a5..bb13934fb3a 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -2409,6 +2409,23 @@ visible and, unless @var{alist} contains an @code{inhibit-switch-frame} | |||
| 2409 | entry (@pxref{Choosing Window Options}), raises that frame if necessary. | 2409 | entry (@pxref{Choosing Window Options}), raises that frame if necessary. |
| 2410 | @end defun | 2410 | @end defun |
| 2411 | 2411 | ||
| 2412 | @defun display-buffer-reuse-mode-window buffer alist | ||
| 2413 | This function tries to display @var{buffer} by finding a window | ||
| 2414 | that is displaying a buffer in a given mode. | ||
| 2415 | |||
| 2416 | If @var{alist} contains a @code{mode} entry, its value is a major mode | ||
| 2417 | (a symbol) or a list of major modes. If @var{alist} contains no | ||
| 2418 | @code{mode} entry, the current major mode of @var{buffer} is used. A | ||
| 2419 | window is a candidate if it displays a buffer that derives from one of | ||
| 2420 | the given modes. | ||
| 2421 | |||
| 2422 | The behaviour is also controlled by entries for | ||
| 2423 | @code{inhibit-same-window}, @code{reusable-frames} and | ||
| 2424 | @code{inhibit-switch-frame} as is done in the function | ||
| 2425 | @code{display-buffer-reuse-window}. | ||
| 2426 | |||
| 2427 | @end defun | ||
| 2428 | |||
| 2412 | @defun display-buffer-pop-up-frame buffer alist | 2429 | @defun display-buffer-pop-up-frame buffer alist |
| 2413 | This function creates a new frame, and displays the buffer in that | 2430 | This function creates a new frame, and displays the buffer in that |
| 2414 | frame's window. It actually performs the frame creation by calling | 2431 | frame's window. It actually performs the frame creation by calling |