Kaynağa Gözat

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

Alex Bennee 15 yıl önce
ebeveyn
işleme
d3408320f9
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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)))))