aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStephen Leake2015-07-29 19:23:19 -0500
committerStephen Leake2015-07-29 19:23:19 -0500
commit3b9d689c2abb294250de6c690d77e9175952be72 (patch)
tree86ea017fe12739fb7145721be0f938b1e57d5ec0 /lisp
parent72fea2fac543558cd2c4bd55e6f714f9f43efbc3 (diff)
downloademacs-3b9d689c2abb294250de6c690d77e9175952be72.tar.gz
emacs-3b9d689c2abb294250de6c690d77e9175952be72.zip
Add docs for display-buffer action display-buffer-use-some-frame
* lisp/window.el (display-buffer-use-some-frame): improve doc string * doc/lispref/windows.texi (Display Action Functions): add display-buffer-use-some-frame * etc/NEWS: mention display-buffer-use-some-frame
Diffstat (limited to 'lisp')
-rw-r--r--lisp/window.el16
1 files changed, 7 insertions, 9 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 986c55380d0..238e53ca76a 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -6489,19 +6489,17 @@ its documentation for additional customization information."
6489;;; `display-buffer' action functions: 6489;;; `display-buffer' action functions:
6490 6490
6491(defun display-buffer-use-some-frame (buffer alist) 6491(defun display-buffer-use-some-frame (buffer alist)
6492 "Display BUFFER in an existing frame other than the current frame. 6492 "Display BUFFER in an existing frame that meets a predicate
6493If successful, return the window used; otherwise return nil. 6493(by default any frame other than the current frame). If
6494successful, return the window used; otherwise return nil.
6494 6495
6495If ALIST has a non-nil `inhibit-switch-frame' entry, avoid 6496If ALIST has a non-nil `inhibit-switch-frame' entry, avoid
6496raising the frame. 6497raising the frame.
6497 6498
6498If ALIST has a non-nil `pop-up-frame-parameters' entry, the 6499If ALIST has a non-nil `frame-predicate' entry, its value is a
6499corresponding value is an alist of frame parameters to give the 6500function taking one argument (a frame), returning non-nil if the
6500new frame. 6501frame is a candidate; this function replaces the default
6501 6502predicate."
6502If ALIST has a non-nil `frame-predicate' entry, the corresponding
6503value is a function taking one argument (a frame), returning
6504non-nil if the frame is a candidate."
6505 (let* ((predicate (or (cdr (assoc 'frame-predicate alist)) 6503 (let* ((predicate (or (cdr (assoc 'frame-predicate alist))
6506 (lambda (frame) 6504 (lambda (frame)
6507 (and 6505 (and