* 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)
;; choice there.) In daemon mode on Windows, we can't
;; make tty frames, so force the frame type to GUI
;; there too.
- (when (and (eq system-type 'windows-nt)
- (or (daemonp)
- (eq window-system 'w32)))
+ (when (or (and (eq system-type 'windows-nt)
+ (or (daemonp)
+ (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)))
;; -position +LINE[:COLUMN]: Set point to the given