summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-05-31 21:18:55 +0000
committerKarl Heuer <kwzh@gnu.org>1995-05-31 21:18:55 +0000
commit1b4ec1c81b4d1b8b054dc3a077adc74ee3330f53 (patch)
treecb4081dfdf2ea700416aa9c80838b56fd330d1b8
parent6103c44e5a46ec815db8b14635157bb4211eeb5b (diff)
downloademacs-1b4ec1c81b4d1b8b054dc3a077adc74ee3330f53.tar.gz
(x_display_info_for_name): Fix error message.
(Fx_open_connection): Fix error messages.
-rw-r--r--src/xfns.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/xfns.c b/src/xfns.c
index abc64d6944d..8ddd363d358 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4591,7 +4591,7 @@ x_display_info_for_name (name)
(char *) XSTRING (Vx_resource_name)->data);
if (dpyinfo == 0)
- error ("X server %s not responding", XSTRING (name)->data);
+ error ("Cannot connect to X server %s", XSTRING (name)->data);
x_in_use = 1;
XSETFASTINT (Vwindow_system_version, 11);
@@ -4634,11 +4634,13 @@ terminate Emacs if we can't open the connection.")
if (dpyinfo == 0)
{
if (!NILP (must_succeed))
- fatal ("X server %s not responding.\n\
-Check the DISPLAY environment variable or use \"-d\"\n",
+ fatal ("Cannot connect to X server %s.\n\
+Check the DISPLAY environment variable or use `-d'.\n\
+Also use the `xhost' program to verify that it is set to permit\n\
+connections from your machine.\n",
XSTRING (display)->data);
else
- error ("X server %s not responding", XSTRING (display)->data);
+ error ("Cannot connect to X server %s", XSTRING (display)->data);
}
x_in_use = 1;