diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2010-10-24 17:36:09 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2010-10-24 17:36:09 -0400 |
commit | 0c382083b6b550c26fad8ac7f59b1ba09663e728 (patch) | |
tree | 811262fd6093232799dabb83600551ba63cecaac /src/frame.c | |
parent | d77d0953b5ddb05ea7ad19556f37a5f5c4d3a67b (diff) | |
parent | 23c261f58fceed14e04b3ba928007fde9567d8e2 (diff) | |
download | emacs-0c382083b6b550c26fad8ac7f59b1ba09663e728.tar.gz |
Merge changes from emacs-23
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/frame.c b/src/frame.c index 2489aa91de0..1c9d471cfa9 100644 --- a/src/frame.c +++ b/src/frame.c @@ -203,11 +203,12 @@ Lisp_Object Vframe_list; DEFUN ("framep", Fframep, Sframep, 1, 1, 0, doc: /* Return non-nil if OBJECT is a frame. -Value is t for a termcap frame (a character-only terminal), -`x' for an Emacs frame that is really an X window, -`w32' for an Emacs frame that is a window on MS-Windows display, -`ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display, -`pc' for a direct-write MS-DOS frame. +Value is: + t for a termcap frame (a character-only terminal), + 'x' for an Emacs frame that is really an X window, + 'w32' for an Emacs frame that is a window on MS-Windows display, + 'ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display, + 'pc' for a direct-write MS-DOS frame. See also `frame-live-p'. */) (Lisp_Object object) { @@ -249,10 +250,18 @@ return values. */) DEFUN ("window-system", Fwindow_system, Swindow_system, 0, 1, 0, doc: /* The name of the window system that FRAME is displaying through. -The value is a symbol---for instance, 'x' for X windows. -The value is nil if Emacs is using a text-only terminal. - -FRAME defaults to the currently selected frame. */) +The value is a symbol: + nil for a termcap frame (a character-only terminal), + 'x' for an Emacs frame that is really an X window, + 'w32' for an Emacs frame that is a window on MS-Windows display, + 'ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display, + 'pc' for a direct-write MS-DOS frame. + +FRAME defaults to the currently selected frame. + +Use of this function as a predicate is deprecated. Instead, +use `display-graphic-p' or any of the other `display-*-p' +predicates which report frame's specific UI-related capabilities. */) (Lisp_Object frame) { Lisp_Object type; |