diff options
| author | Adrian Robert | 2009-01-23 09:08:03 +0000 |
|---|---|---|
| committer | Adrian Robert | 2009-01-23 09:08:03 +0000 |
| commit | e7534fc4ed352b0d11dc3426d42f46482ed1353a (patch) | |
| tree | e94ed1548383edd649b53b6ceb90fd21898bbb25 /lib-src | |
| parent | 87248b44629da6aee00deb9d85e344e6fa27a2a6 (diff) | |
| download | emacs-e7534fc4ed352b0d11dc3426d42f46482ed1353a.tar.gz emacs-e7534fc4ed352b0d11dc3426d42f46482ed1353a.zip | |
* emacsclient.c (decode_options): Use a dummy display name under NS/Cocoa.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index cbfb6ed2254..92625428b2e 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com> | ||
| 2 | |||
| 3 | * emacsclient.c (decode_options): Use a dummy display name under | ||
| 4 | NS/Cocoa. | ||
| 5 | |||
| 1 | 2009-01-14 Lars Rasmusson <lars.rasmusson@gmail.com> (tiny change) | 6 | 2009-01-14 Lars Rasmusson <lars.rasmusson@gmail.com> (tiny change) |
| 2 | 7 | ||
| 3 | * ebrowse.c (matching_regexp): Fix OB1 error. | 8 | * ebrowse.c (matching_regexp): Fix OB1 error. |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 668be6ce11d..559664f0d45 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -574,7 +574,15 @@ decode_options (argc, argv) | |||
| 574 | inconvenient. So we force users to use "--display $DISPLAY" if | 574 | inconvenient. So we force users to use "--display $DISPLAY" if |
| 575 | they want Emacs to connect to their current display. */ | 575 | they want Emacs to connect to their current display. */ |
| 576 | if (!current_frame && !tty && !display) | 576 | if (!current_frame && !tty && !display) |
| 577 | display = egetenv ("DISPLAY"); | 577 | { |
| 578 | display = egetenv ("DISPLAY"); | ||
| 579 | #ifdef NS_IMPL_COCOA | ||
| 580 | /* Under Cocoa, we don't really use displays the same way as in X, | ||
| 581 | so provide a dummy. */ | ||
| 582 | if (!display || strlen (display) == 0) | ||
| 583 | display = "ns"; | ||
| 584 | #endif | ||
| 585 | } | ||
| 578 | 586 | ||
| 579 | /* A null-string display is invalid. */ | 587 | /* A null-string display is invalid. */ |
| 580 | if (display && strlen (display) == 0) | 588 | if (display && strlen (display) == 0) |