Pārlūkot izejas kodu

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

Alex Bennee 15 gadi atpakaļ
vecāks
revīzija
d3408320f9
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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)))))