瀏覽代碼

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

Alex Bennee 15 年之前
父節點
當前提交
d3408320f9
共有 1 個文件被更改,包括 2 次插入1 次删除
  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)))))