aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorStefan Monnier2008-02-08 15:28:04 +0000
committerStefan Monnier2008-02-08 15:28:04 +0000
commit09317bf4bfaa866b1193863c2f4a0d34aa26c720 (patch)
tree8e6e13c993e51a2875d9e9032c0684f18692f37c /lib-src
parent9997dc15294bb1d2daa1e578c180cd297d5d6f78 (diff)
downloademacs-09317bf4bfaa866b1193863c2f4a0d34aa26c720.tar.gz
emacs-09317bf4bfaa866b1193863c2f4a0d34aa26c720.zip
(decode_options): Fix last change so as not to override an explicit -display.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c2
1 files changed, 1 insertions, 1 deletions
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)
565 -c still implicitly passes --display $DISPLAY unless -t was specified 565 -c still implicitly passes --display $DISPLAY unless -t was specified
566 so as to try and mimick the behavior of `emacs' which either uses 566 so as to try and mimick the behavior of `emacs' which either uses
567 the current tty or the current $DISPLAY. */ 567 the current tty or the current $DISPLAY. */
568 if (!current_frame && !tty) 568 if (!current_frame && !tty && !display)
569 display = egetenv ("DISPLAY"); 569 display = egetenv ("DISPLAY");
570 570
571 if (display && strlen (display) == 0) 571 if (display && strlen (display) == 0)