diff options
| author | Chong Yidong | 2008-10-30 15:54:38 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-30 15:54:38 +0000 |
| commit | 8536c0f5c5536ed023c61c6f903abbef805f2715 (patch) | |
| tree | a6606fd51f5ad4da0777833a71e6fe2329c548e4 /lib-src | |
| parent | 8a8a7cd3966150a600689862f5ee6b6a8d2ffe61 (diff) | |
| download | emacs-8536c0f5c5536ed023c61c6f903abbef805f2715.tar.gz emacs-8536c0f5c5536ed023c61c6f903abbef805f2715.zip | |
(main): If using the current frame, send tty information to Emacs in
case daemon mode needs to occupy this tty.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 870100ed4af..0bbc385d07f 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -1437,7 +1437,10 @@ main (argc, argv) | |||
| 1437 | send_to_emacs (emacs_socket, " "); | 1437 | send_to_emacs (emacs_socket, " "); |
| 1438 | } | 1438 | } |
| 1439 | 1439 | ||
| 1440 | if (tty) | 1440 | /* If using the current frame, send tty information to Emacs anyway. |
| 1441 | In daemon mode, Emacs may need to occupy this tty if no other | ||
| 1442 | frame is available. */ | ||
| 1443 | if (tty || current_frame) | ||
| 1441 | { | 1444 | { |
| 1442 | char *type = egetenv ("TERM"); | 1445 | char *type = egetenv ("TERM"); |
| 1443 | char *tty_name = NULL; | 1446 | char *tty_name = NULL; |