Simplify childframe creation

display-buffer-in-childframe will automatically reuse childframe
This commit is contained in:
Yuan Fu 2019-01-04 18:56:42 -05:00
parent ae1a4690a9
commit 6ceeb22b68
No known key found for this signature in database
GPG Key ID: 1CF5ECABEC37A901

View File

@ -235,10 +235,9 @@ 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 (or (and eldoc-box--frame (frame-selected-window eldoc-box--frame))
(display-buffer-in-child-frame
buffer
`((child-frame-parameters . ,parameter)))))
(window (display-buffer-in-child-frame
buffer
`((child-frame-parameters . ,parameter))))
(frame (window-frame window))
(main-frame (selected-frame)))
(make-frame-visible frame)