diff options
author | Karoly Lorentey <lorentey@elte.hu> | 2005-09-11 03:49:47 +0000 |
---|---|---|
committer | Karoly Lorentey <lorentey@elte.hu> | 2005-09-11 03:49:47 +0000 |
commit | b8ccaf6fb3041fc99edf29e3c9ea9aa1ca04c1bd (patch) | |
tree | 3ee26c47d9f7a15cad0c406c983c709572815d77 /lib-src/emacsclient.c | |
parent | 62af879c72eb791a0e0096ae2c739e8c2649d2fc (diff) | |
download | emacs-b8ccaf6fb3041fc99edf29e3c9ea9aa1ca04c1bd.tar.gz |
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
Diffstat (limited to 'lib-src/emacsclient.c')
-rw-r--r-- | lib-src/emacsclient.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index ecd0d18ce85..85415eba44a 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -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) |