diff options
| author | Richard M. Stallman | 1996-04-10 05:39:50 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-04-10 05:39:50 +0000 |
| commit | d98f0b87e6e06a5c70b57e94e54efbe3570a78be (patch) | |
| tree | 2720b52d3528062799f51abe8dee1f7b32487d06 | |
| parent | f56c521706a739309e6df5a8f81da1c6445461c5 (diff) | |
| download | emacs-d98f0b87e6e06a5c70b57e94e54efbe3570a78be.tar.gz emacs-d98f0b87e6e06a5c70b57e94e54efbe3570a78be.zip | |
(x-handle-display): Set DISPLAY envvar too.
| -rw-r--r-- | lisp/term/x-win.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index b6f753b6201..f9c78f5af01 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -149,7 +149,12 @@ | |||
| 149 | 149 | ||
| 150 | (defun x-handle-display (switch) | 150 | (defun x-handle-display (switch) |
| 151 | (setq x-display-name (car x-invocation-args) | 151 | (setq x-display-name (car x-invocation-args) |
| 152 | x-invocation-args (cdr x-invocation-args))) | 152 | x-invocation-args (cdr x-invocation-args)) |
| 153 | ;; Make subshell programs see the same DISPLAY value Emacs really uses. | ||
| 154 | ;; Note that this isn't completely correct, since Emacs can use | ||
| 155 | ;; multiple displays. However, there is no way to tell an already | ||
| 156 | ;; running subshell which display the user is currently typing on. | ||
| 157 | (setenv "DISPLAY" x-display-name)) | ||
| 153 | 158 | ||
| 154 | (defun x-handle-args (args) | 159 | (defun x-handle-args (args) |
| 155 | "Process the X-related command line options in ARGS. | 160 | "Process the X-related command line options in ARGS. |