Explorar o código

Use make-frame-on-display to ensure --daemon invocations work

Alex Bennee %!s(int64=15) %!d(string=hai) anos
pai
achega
d3408320f9
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      edit_server.el

+ 2 - 1
edit_server.el

@@ -239,7 +239,8 @@ If `edit-server-verbose' is non-nil, then STRING is also echoed to the message l
       (buffer-enable-undo)
       (set (make-local-variable 'edit-server-proc) proc)
       (set (make-local-variable 'edit-server-frame) 
-           (if edit-server-new-frame (make-frame) nil))
+           (if edit-server-new-frame
+	       (make-frame-on-display (getenv "DISPLAY")) nil))
       (if edit-server-new-frame
           (raise-frame edit-server-frame)
         (pop-to-buffer buffer)))))