Revert "Simplify childframe creation"

Built-in function doesn't really reused the childframe,
change back to manually reuse.

This reverts commit 6ceeb22b68.
This commit is contained in:
Yuan Fu 2019-01-23 14:39:51 -05:00
parent 9f22d688a3
commit 6f18d01501
No known key found for this signature in database
GPG Key ID: 1CF5ECABEC37A901

View File

@ -234,9 +234,10 @@ Checkout `lsp-ui-doc--make-frame', `lsp-ui-doc--move-frame'."
`((default-minibuffer-frame . ,(selected-frame))
(minibuffer . ,(minibuffer-window))
(left-fringe . ,(frame-char-width)))))
(window (display-buffer-in-child-frame
buffer
`((child-frame-parameters . ,parameter))))
(window (or (and eldoc-box--frame (frame-selected-window eldoc-box--frame))
(display-buffer-in-child-frame
buffer
`((child-frame-parameters . ,parameter)))))
(frame (window-frame window))
(main-frame (selected-frame)))
(make-frame-visible frame)