comparison lib-src/emacsclient.c @ 83371:f4766b398a30

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
author Karoly Lorentey <lorentey@elte.hu>
date Sun, 11 Sep 2005 03:49:47 +0000
parents 2b5fb28780be
children 51eb0aa362f3
comparison
equal deleted inserted replaced
83370:5272862a4865 83371:f4766b398a30
177 if (!tty && display) 177 if (!tty && display)
178 window_system = 1; 178 window_system = 1;
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)
188 { 188 {
189 tty = 0; 189 tty = 0;