changeset 99055:1f6ba3233689

(make-frame-command): Doc fix. Use display-graphic-p.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 22 Oct 2008 21:09:48 +0000
parents 731804a3fbe8
children 8118755ca5ba
files lisp/frame.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/frame.el	Wed Oct 22 21:06:55 2008 +0000
+++ b/lisp/frame.el	Wed Oct 22 21:09:48 2008 +0000
@@ -674,9 +674,11 @@
       (x-close-connection display))))
 
 (defun make-frame-command ()
-  "Make a new frame, and select it if the terminal displays only one frame."
+  "Make a new frame, on the same terminal as the selected frame.
+If the terminal is a text-only terminal, this also selects the
+new frame."
   (interactive)
-  (if (and window-system (not (eq window-system 'pc)))
+  (if (display-graphic-p)
       (make-frame)
     (select-frame (make-frame))))