]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fx_close_current_connection): call check_x.
authorKarl Heuer <kwzh@gnu.org>
Mon, 14 Feb 1994 23:28:23 +0000 (23:28 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 14 Feb 1994 23:28:23 +0000 (23:28 +0000)
src/xfns.c

index e6b6c43a49724bc7290d7f6884a9d27011ac871a..0c775d3994f485b17d3aee483d515d79caa8ee9a 100644 (file)
@@ -3925,6 +3925,12 @@ DEFUN ("x-close-current-connection", Fx_close_current_connection,
        0, 0, 0, "Close the connection to the current X server.")
   ()
 {
+  /* Note: If we're going to call check_x here, then the fatal error
+     can't happen.  For the moment, this check is just for safety,
+     so a user won't try out the function and get a crash.  If it's
+     really intended only to be called when killing emacs, then there's
+     no reason for it to have a lisp interface at all.  */
+  check_x();
 #ifdef HAVE_X11
   /* This is ONLY used when killing emacs;  For switching displays
      we'll have to take care of setting CloseDownMode elsewhere. */