core-popups: clone buffer if visible elsewhere

Allows us to modify the buffer in the pop up window indepdently from the
rest.
This commit is contained in:
Henrik Lissner 2017-05-12 12:11:40 +02:00
parent 29d01756ea
commit ed6941e8ae
3 changed files with 8 additions and 4 deletions

View file

@ -114,7 +114,8 @@ only close popups that have an :autoclose property in their rule (see
;;;###autoload
(defun doom/popup ()
"Display currently selected buffer in a popup window."
(doom-popup-buffer (current-buffer) :align t))
(interactive)
(doom-popup-buffer (current-buffer) :align t :autokill t))
(defun doom--popup-data (window)
(let ((buffer (window-buffer window)))