Fix --no-wait in emacsclient (reported by Dan Nicolaescu).
* lib-src/emacsclient.c (main): Don't exit prematurely on --no-wait, let Emacs close the connection for us. * lisp/server.el (server-visit-files): Don't set client-record when nowait. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-205
This commit is contained in:
parent
76e9cc5001
commit
fc2040c034
2 changed files with 4 additions and 7 deletions
|
@ -814,11 +814,8 @@ To start the server in Emacs, type \"M-x server-start\".\n",
|
|||
fflush (out);
|
||||
fsync (fileno (out));
|
||||
|
||||
/* Maybe wait for an answer. */
|
||||
if (nowait)
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
if (!eval && !tty)
|
||||
/* Wait for an answer. */
|
||||
if (!eval && !tty && !nowait)
|
||||
{
|
||||
printf ("Waiting for Emacs...");
|
||||
needlf = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue