diff options
| author | Andreas Schwab | 2006-03-20 22:41:23 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2006-03-20 22:41:23 +0000 |
| commit | c1fc674b45aa1f241c0703207ac30b7ec79beea3 (patch) | |
| tree | 0ce2d9a0f616763df1f605d3ddd73ee40c9a3166 /src/emacs.c | |
| parent | 7d6194544ec237070423a6edb3a3011931d177d9 (diff) | |
| download | emacs-c1fc674b45aa1f241c0703207ac30b7ec79beea3.tar.gz emacs-c1fc674b45aa1f241c0703207ac30b7ec79beea3.zip | |
* dispnew.c (init_display): Check DISPLAY here.
* emacs.c (main): Don't check here.
* xterm.c (x_display_ok): Don't use DISPLAY env var.
Diffstat (limited to 'src/emacs.c')
| -rw-r--r-- | src/emacs.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/emacs.c b/src/emacs.c index 62a23f70859..846bfc7e453 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -53,10 +53,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 53 | #include "buffer.h" | 53 | #include "buffer.h" |
| 54 | #include "window.h" | 54 | #include "window.h" |
| 55 | 55 | ||
| 56 | #ifdef HAVE_X_WINDOWS | ||
| 57 | #include "xterm.h" | ||
| 58 | #endif | ||
| 59 | |||
| 60 | #include "systty.h" | 56 | #include "systty.h" |
| 61 | #include "blockinput.h" | 57 | #include "blockinput.h" |
| 62 | #include "syssignal.h" | 58 | #include "syssignal.h" |
| @@ -1486,14 +1482,6 @@ main (argc, argv | |||
| 1486 | 1482 | ||
| 1487 | /* Don't actually discard this arg. */ | 1483 | /* Don't actually discard this arg. */ |
| 1488 | skip_args = count_before; | 1484 | skip_args = count_before; |
| 1489 | |||
| 1490 | /* Do not be lenient if the user explicitly asked for a named display. */ | ||
| 1491 | if (display_arg == 1 && !x_display_ok (displayname)) | ||
| 1492 | { | ||
| 1493 | fprintf (stderr, "Display %s unavailable, simulating -nw\n", | ||
| 1494 | displayname); | ||
| 1495 | inhibit_window_system = 1; | ||
| 1496 | } | ||
| 1497 | } | 1485 | } |
| 1498 | #endif | 1486 | #endif |
| 1499 | 1487 | ||