diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-06-05 11:55:49 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-06-05 11:55:49 +0000 |
commit | ebae7abe7158455b9fa3b356c3bff228dc6b17a4 (patch) | |
tree | c291f7c55d09ebaec69db7a409187e40bafb24b2 | |
parent | 4f2335d3fca53273e6a38ffc88e16ddb5029ae20 (diff) | |
download | emacs-ebae7abe7158455b9fa3b356c3bff228dc6b17a4.tar.gz |
(using_x_p): New function.
-rw-r--r-- | src/xfns.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index 1693807e9f0..4e3144e5dc4 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -249,6 +249,14 @@ check_x () error ("X windows are not in use or not initialized"); } +/* Nonzero if using X for display. */ + +int +using_x_p () +{ + return x_current_display != 0; +} + /* Return the Emacs frame-object corresponding to an X window. It could be the frame's main window or an icon window. */ |