From: Stefan Monnier Date: Fri, 8 Feb 2008 15:28:04 +0000 (+0000) Subject: (decode_options): Fix last change so as not to override an explicit -display. X-Git-Tag: emacs-pretest-23.0.90~8086 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=09317bf4bfaa866b1193863c2f4a0d34aa26c720;p=emacs.git (decode_options): Fix last change so as not to override an explicit -display. --- diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index cfa5fa00370..a39376be3fb 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -565,7 +565,7 @@ decode_options (argc, argv) -c still implicitly passes --display $DISPLAY unless -t was specified so as to try and mimick the behavior of `emacs' which either uses the current tty or the current $DISPLAY. */ - if (!current_frame && !tty) + if (!current_frame && !tty && !display) display = egetenv ("DISPLAY"); if (display && strlen (display) == 0)