]> code.delx.au - gnu-emacs/commitdiff
Make `emacsclient -n <filename>' open new X frames when possible. (Reported by Bas...
authorKaroly Lorentey <lorentey@elte.hu>
Sun, 11 Sep 2005 03:49:47 +0000 (03:49 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Sun, 11 Sep 2005 03:49:47 +0000 (03:49 +0000)
* 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

README.multi-tty
lib-src/emacsclient.c

index d1122dfba83cc350c69cc0621e9a2b42856ba460..39a1607cbdeae6e7953f11d8e4f9806bab5888df 100644 (file)
@@ -40,6 +40,7 @@ Ami Fischman <ami at fischman dot org>
 Friedrich Delgado Friedrichs <friedel at nomaden dot org>
 IRIE Tetsuya <irie at t dot email dot ne dot jp>
 Yoshiaki Kasahara <kasahara at nc dot kyushu-u dot ac dot jp>
+Bas Kok <nekkobassu at yahoo dot com>
 Jurej Kubelka <Juraj dot Kubelka at email dot cz>
 David Lichteblau <david at lichteblau dot com>
 Xavier Mallard <zedek at gnu-rox dot org>
index ecd0d18ce855702a82e94ae4300a0709631ec0f5..85415eba44a2685d931f84bfd65dbca7240e2709 100644 (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)