General refactor & cleanup

This commit is contained in:
Henrik Lissner 2017-05-13 00:14:15 +02:00
parent 5beb74b14d
commit afb31659a3
5 changed files with 6 additions and 10 deletions

View file

@ -197,8 +197,7 @@ and setting `doom-popup-rules' within it. Returns the window."
(when (get-buffer-window-list (car args) nil t)
(setq plist (append (list :autokill t) plist))
(setcar args (clone-indirect-buffer (buffer-name (car args)) nil t)))
(setq window (apply orig-fn args))
(unless window
(unless (setq window (apply orig-fn args))
(error "No popup window was found for %s: %s" (car args) plist))
(with-selected-window window
(unless (eq plist t)