diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index e6b6c43a497..0c775d3994f 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3925,6 +3925,12 @@ DEFUN ("x-close-current-connection", Fx_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. */ |