Mercurial > emacs
diff 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 |
line wrap: on
line diff
--- a/lib-src/emacsclient.c Sun Sep 11 03:15:42 2005 +0000 +++ b/lib-src/emacsclient.c Sun Sep 11 03:49:47 2005 +0000 @@ -179,9 +179,9 @@ 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)