mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-10 00:00:39 -08:00
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
This commit is contained in:
parent
62af879c72
commit
b8ccaf6fb3
2 changed files with 4 additions and 3 deletions
|
|
@ -40,6 +40,7 @@ Ami Fischman <ami at fischman dot org>
|
||||||
Friedrich Delgado Friedrichs <friedel at nomaden dot org>
|
Friedrich Delgado Friedrichs <friedel at nomaden dot org>
|
||||||
IRIE Tetsuya <irie at t dot email dot ne dot jp>
|
IRIE Tetsuya <irie at t dot email dot ne dot jp>
|
||||||
Yoshiaki Kasahara <kasahara at nc dot kyushu-u dot ac 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>
|
Jurej Kubelka <Juraj dot Kubelka at email dot cz>
|
||||||
David Lichteblau <david at lichteblau dot com>
|
David Lichteblau <david at lichteblau dot com>
|
||||||
Xavier Mallard <zedek at gnu-rox dot org>
|
Xavier Mallard <zedek at gnu-rox dot org>
|
||||||
|
|
|
||||||
|
|
@ -179,9 +179,9 @@ decode_options (argc, argv)
|
||||||
else
|
else
|
||||||
tty = 1;
|
tty = 1;
|
||||||
|
|
||||||
/* `emacsclient --no-wait' should open a new permanent frame, then exit.
|
/* --no-wait implies --current-frame on ttys when there are file
|
||||||
Otherwise, --no-wait always implies --current-frame. */
|
arguments or expressions given. */
|
||||||
if (nowait && argc - optind > 0)
|
if (nowait && tty && argc - optind > 0)
|
||||||
current_frame = 1;
|
current_frame = 1;
|
||||||
|
|
||||||
if (current_frame)
|
if (current_frame)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue