Make `emacsclient -n <filename>' open new X frames when possible. (Reported by Bas Kok.)

* lib-src/emacsclient.c (decode_options): Change --no-wait to imply
  --current-frame only on ttys and only when there are extra arguments.


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-411
This commit is contained in:
Karoly Lorentey 2005-09-11 03:49:47 +00:00
parent 62af879c72
commit b8ccaf6fb3
2 changed files with 4 additions and 3 deletions

View file

@ -179,9 +179,9 @@ decode_options (argc, argv)
else
tty = 1;
/* `emacsclient --no-wait' should open a new permanent frame, then exit.
Otherwise, --no-wait always implies --current-frame. */
if (nowait && argc - optind > 0)
/* --no-wait implies --current-frame on ttys when there are file
arguments or expressions given. */
if (nowait && tty && argc - optind > 0)
current_frame = 1;
if (current_frame)