mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 14:30:43 -08:00
(x-handle-display): Set DISPLAY envvar too.
This commit is contained in:
parent
f56c521706
commit
d98f0b87e6
1 changed files with 6 additions and 1 deletions
|
|
@ -149,7 +149,12 @@
|
|||
|
||||
(defun x-handle-display (switch)
|
||||
(setq x-display-name (car x-invocation-args)
|
||||
x-invocation-args (cdr x-invocation-args)))
|
||||
x-invocation-args (cdr x-invocation-args))
|
||||
;; Make subshell programs see the same DISPLAY value Emacs really uses.
|
||||
;; Note that this isn't completely correct, since Emacs can use
|
||||
;; multiple displays. However, there is no way to tell an already
|
||||
;; running subshell which display the user is currently typing on.
|
||||
(setenv "DISPLAY" x-display-name))
|
||||
|
||||
(defun x-handle-args (args)
|
||||
"Process the X-related command line options in ARGS.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue