1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

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:
Karoly Lorentey 2004-07-03 17:53:57 +00:00
parent 76e9cc5001
commit fc2040c034
2 changed files with 4 additions and 7 deletions

View file

@ -679,8 +679,8 @@ so don't mark these buffers specially, just visit them normally."
(unless nowait
;; When the buffer is killed, inform the clients.
(add-hook 'kill-buffer-hook 'server-kill-buffer nil t)
(push (car client) server-buffer-clients))
(push (current-buffer) client-record)))
(push (car client) server-buffer-clients)
(push (current-buffer) client-record))))
(server-client-set
client 'buffers
(nconc (server-client-get client 'buffers) client-record))))