From e9e6aee8216f118576c889497a0314ecefc53022 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 22 Oct 2008 21:09:48 +0000 Subject: [PATCH] (make-frame-command): Doc fix. Use display-graphic-p. --- lisp/frame.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/frame.el b/lisp/frame.el index d870d7419bb..ae0803d6a8d 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -674,9 +674,11 @@ If DISPLAY is nil, that stands for the selected frame's display." (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)))) -- 2.39.5