mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Support emacsclient on Windows with server on GNU or Unix systems
* lisp/server.el (server-process-filter): If 'tty-name' is literally "CONOUT$", assume the client runs on MS-Windows and force the frame type to GUI. This allows to run emacsclient on MS-Windows when the server runs on a Posix host. (Bug#65812)
This commit is contained in:
parent
f0a89fa1d0
commit
738d854333
1 changed files with 6 additions and 3 deletions
|
|
@ -1262,9 +1262,12 @@ The following commands are accepted by the client:
|
||||||
;; choice there.) In daemon mode on Windows, we can't
|
;; choice there.) In daemon mode on Windows, we can't
|
||||||
;; make tty frames, so force the frame type to GUI
|
;; make tty frames, so force the frame type to GUI
|
||||||
;; there too.
|
;; there too.
|
||||||
(when (and (eq system-type 'windows-nt)
|
(when (or (and (eq system-type 'windows-nt)
|
||||||
(or (daemonp)
|
(or (daemonp)
|
||||||
(eq window-system 'w32)))
|
(eq window-system 'w32)))
|
||||||
|
;; Client runs on Windows, but the server
|
||||||
|
;; runs on a Posix host.
|
||||||
|
(equal tty-name "CONOUT$"))
|
||||||
(push "-window-system" args-left)))
|
(push "-window-system" args-left)))
|
||||||
|
|
||||||
;; -position +LINE[:COLUMN]: Set point to the given
|
;; -position +LINE[:COLUMN]: Set point to the given
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue