diff options
| author | Karoly Lorentey | 2005-09-11 03:49:47 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-09-11 03:49:47 +0000 |
| commit | b8ccaf6fb3041fc99edf29e3c9ea9aa1ca04c1bd (patch) | |
| tree | 3ee26c47d9f7a15cad0c406c983c709572815d77 | |
| parent | 62af879c72eb791a0e0096ae2c739e8c2649d2fc (diff) | |
| download | emacs-b8ccaf6fb3041fc99edf29e3c9ea9aa1ca04c1bd.tar.gz emacs-b8ccaf6fb3041fc99edf29e3c9ea9aa1ca04c1bd.zip | |
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
| -rw-r--r-- | README.multi-tty | 1 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/README.multi-tty b/README.multi-tty index d1122dfba83..39a1607cbde 100644 --- a/README.multi-tty +++ b/README.multi-tty | |||
| @@ -40,6 +40,7 @@ Ami Fischman <ami at fischman dot org> | |||
| 40 | Friedrich Delgado Friedrichs <friedel at nomaden dot org> | 40 | Friedrich Delgado Friedrichs <friedel at nomaden dot org> |
| 41 | IRIE Tetsuya <irie at t dot email dot ne dot jp> | 41 | IRIE Tetsuya <irie at t dot email dot ne dot jp> |
| 42 | Yoshiaki Kasahara <kasahara at nc dot kyushu-u dot ac dot jp> | 42 | Yoshiaki Kasahara <kasahara at nc dot kyushu-u dot ac dot jp> |
| 43 | Bas Kok <nekkobassu at yahoo dot com> | ||
| 43 | Jurej Kubelka <Juraj dot Kubelka at email dot cz> | 44 | Jurej Kubelka <Juraj dot Kubelka at email dot cz> |
| 44 | David Lichteblau <david at lichteblau dot com> | 45 | David Lichteblau <david at lichteblau dot com> |
| 45 | Xavier Mallard <zedek at gnu-rox dot org> | 46 | Xavier Mallard <zedek at gnu-rox dot org> |
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) | |||
| 179 | else | 179 | else |
| 180 | tty = 1; | 180 | tty = 1; |
| 181 | 181 | ||
| 182 | /* `emacsclient --no-wait' should open a new permanent frame, then exit. | 182 | /* --no-wait implies --current-frame on ttys when there are file |
| 183 | Otherwise, --no-wait always implies --current-frame. */ | 183 | arguments or expressions given. */ |
| 184 | if (nowait && argc - optind > 0) | 184 | if (nowait && tty && argc - optind > 0) |
| 185 | current_frame = 1; | 185 | current_frame = 1; |
| 186 | 186 | ||
| 187 | if (current_frame) | 187 | if (current_frame) |