]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve X error messages
authorPo Lu <luangruo@yahoo.com>
Sat, 10 Dec 2022 11:26:54 +0000 (19:26 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 10 Dec 2022 11:27:26 +0000 (19:27 +0800)
* src/xterm.c (x_connection_closed): Don't print handler blurb
if nothing is there to be printed.

src/xterm.c

index 872326392a6a70f96ca88ca309336f615ee65625..c6fa29943bf136256585dd840357f5ab4bae1b4d 100644 (file)
@@ -26048,9 +26048,10 @@ For details, see etc/PROBLEMS.\n",
          if (!ioerror && dpyinfo)
            {
              /* Dump the list of error handlers for debugging
-                purposes.  */
+                purposes if the list exists.  */
 
-             fprintf (stderr, "X error handlers currently installed:\n");
+             if (dpyinfo->failable_requests || x_error_message)
+               fprintf (stderr, "X error handlers currently installed:\n");
 
              for (failable = dpyinfo->failable_requests;
                   failable < dpyinfo->next_failable_request;