[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/window.el,v

From: Martin Rudalics
Subject: [Emacs-diffs] Changes to emacs/lisp/window.el,v
Date: Thu, 09 Oct 2008 08:12:02 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Martin Rudalics <m061211>       08/10/09 08:12:01

Index: window.el
RCS file: /sources/emacs/emacs/lisp/window.el,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -b -r1.154 -r1.155
--- window.el   3 Oct 2008 11:17:51 -0000       1.154
+++ window.el   9 Oct 2008 08:12:01 -0000       1.155
@@ -710,8 +710,15 @@
   :group 'windows)
 (defcustom pop-up-frames nil
-  "Non-nil means `display-buffer' should make a separate frame."
-  :type 'boolean
+  "Whether `display-buffer' should make a separate frame.
+If nil, never make a seperate frame.
+If the value is `graphic-only', make a separate frame
+on graphic displays only.
+Any other non-nil value means always make a separate frame."
+  :type '(choice
+         (const :tag "Never" nil)
+         (const :tag "On graphic displays only" graphic-only)
+         (const :tag "Always" t))
   :group 'windows)
 (defcustom display-buffer-reuse-frames nil
@@ -931,7 +938,8 @@
 nil - consider windows on the selected frame \(actually the
 last non-minibuffer frame\) only.  If, however, either
-`display-buffer-reuse-frames' or `pop-up-frames' is non-nil,
+`display-buffer-reuse-frames' or `pop-up-frames' is non-nil
+\(non-nil and not graphic-only on a text-only terminal),
 consider all visible or iconified frames."
   (interactive "BDisplay buffer:\nP")
   (let* ((can-use-selected-window
@@ -945,6 +953,11 @@
                   (get-buffer buffer-or-name)))
         (name-of-buffer (buffer-name buffer))
+        ;; On text-only terminals do not pop up a new frame when
+        ;; `pop-up-frames' equals graphic-only.
+        (use-pop-up-frames (if (eq pop-up-frames 'graphic-only)
+                               (display-graphic-p)
+                             pop-up-frames))
         ;; `frame-to-use' is the frame where to show `buffer' - either
         ;; the selected frame or the last nonminibuffer frame.
@@ -967,7 +980,8 @@
       ;; If the buffer's name tells us to use the selected window do so.
       (window--display-buffer-2 buffer (selected-window)))
      ((let ((frames (or frame
-                       (and (or pop-up-frames display-buffer-reuse-frames
+                       (and (or use-pop-up-frames
+                                display-buffer-reuse-frames
                                 (not (last-nonminibuffer-frame)))
@@ -983,7 +997,7 @@
             (when pars
               (funcall special-display-function
                        buffer (if (listp pars) pars))))))
-     ((or pop-up-frames (not frame-to-use))
+     ((or use-pop-up-frames (not frame-to-use))
       ;; We want or need a new frame.
        buffer (frame-selected-window (funcall pop-up-frame-function))))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]