aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/frame.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index a470fbc0f97..4a5b09ba68a 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1,6 +1,6 @@
1;;; frame.el --- multi-frame management independent of window systems 1;;; frame.el --- multi-frame management independent of window systems
2 2
3;; Copyright (C) 1993, 1994, 1996, 1997, 2000, 2001, 2003 3;; Copyright (C) 1993, 1994, 1996, 1997, 2000, 2001, 2003, 2004
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -113,7 +113,7 @@ use (car ARGS) as a function to do the work.
113Pass it BUFFER as first arg, and (cdr ARGS) gives the rest of the args." 113Pass it BUFFER as first arg, and (cdr ARGS) gives the rest of the args."
114 (if (and args (symbolp (car args))) 114 (if (and args (symbolp (car args)))
115 (apply (car args) buffer (cdr args)) 115 (apply (car args) buffer (cdr args))
116 (let ((window (get-buffer-window buffer t))) 116 (let ((window (get-buffer-window buffer 0)))
117 (or 117 (or
118 ;; If we have a window already, make it visible. 118 ;; If we have a window already, make it visible.
119 (when window 119 (when window
@@ -131,6 +131,7 @@ Pass it BUFFER as first arg, and (cdr ARGS) gives the rest of the args."
131 (let* ((pop-up-frames nil) (pop-up-windows t) 131 (let* ((pop-up-frames nil) (pop-up-windows t)
132 special-display-regexps special-display-buffer-names 132 special-display-regexps special-display-buffer-names
133 (window (display-buffer buffer))) 133 (window (display-buffer buffer)))
134 ;; Only do it if this is a new window:
134 ;; (set-window-dedicated-p window t) 135 ;; (set-window-dedicated-p window t)
135 window)) 136 window))
136 ;; If no window yet, make one in a new frame. 137 ;; If no window yet, make one in a new frame.
@@ -552,7 +553,7 @@ is not considered (see `next-frame')."
552 (interactive) 553 (interactive)
553 (select-window (next-window (selected-window) 554 (select-window (next-window (selected-window)
554 (> (minibuffer-depth) 0) 555 (> (minibuffer-depth) 0)
555 t)) 556 0))
556 (select-frame-set-input-focus (selected-frame))) 557 (select-frame-set-input-focus (selected-frame)))
557 558
558(defun previous-multiframe-window () 559(defun previous-multiframe-window ()
@@ -560,7 +561,7 @@ is not considered (see `next-frame')."
560 (interactive) 561 (interactive)
561 (select-window (previous-window (selected-window) 562 (select-window (previous-window (selected-window)
562 (> (minibuffer-depth) 0) 563 (> (minibuffer-depth) 0)
563 t)) 564 0))
564 (select-frame-set-input-focus (selected-frame))) 565 (select-frame-set-input-focus (selected-frame)))
565 566
566(defun make-frame-on-display (display &optional parameters) 567(defun make-frame-on-display (display &optional parameters)