Mercurial > emacs
comparison src/xfns.c @ 5950:27e4e703f089
(Fx_close_current_connection): call check_x.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 14 Feb 1994 23:28:23 +0000 |
parents | ef777779bd80 |
children | ec2589ce0fdc |
comparison
equal
deleted
inserted
replaced
5949:f394f25efb3c | 5950:27e4e703f089 |
---|---|
3923 DEFUN ("x-close-current-connection", Fx_close_current_connection, | 3923 DEFUN ("x-close-current-connection", Fx_close_current_connection, |
3924 Sx_close_current_connection, | 3924 Sx_close_current_connection, |
3925 0, 0, 0, "Close the connection to the current X server.") | 3925 0, 0, 0, "Close the connection to the current X server.") |
3926 () | 3926 () |
3927 { | 3927 { |
3928 /* Note: If we're going to call check_x here, then the fatal error | |
3929 can't happen. For the moment, this check is just for safety, | |
3930 so a user won't try out the function and get a crash. If it's | |
3931 really intended only to be called when killing emacs, then there's | |
3932 no reason for it to have a lisp interface at all. */ | |
3933 check_x(); | |
3928 #ifdef HAVE_X11 | 3934 #ifdef HAVE_X11 |
3929 /* This is ONLY used when killing emacs; For switching displays | 3935 /* This is ONLY used when killing emacs; For switching displays |
3930 we'll have to take care of setting CloseDownMode elsewhere. */ | 3936 we'll have to take care of setting CloseDownMode elsewhere. */ |
3931 | 3937 |
3932 if (x_current_display) | 3938 if (x_current_display) |