Guest User

Untitled

a guest
Jan 20th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. (defun helm-persistent-action-display-window (&optional split-onewindow)
  2. "Return the window that will be used for persistent action.
  3. If SPLIT-ONEWINDOW is non-`nil' window is split in persistent action."
  4. (with-helm-window
  5. (setq helm-persistent-action-display-window
  6. (cond ((and (window-live-p helm-persistent-action-display-window)
  7. (not (member helm-persistent-action-display-window
  8. (get-buffer-window-list helm-buffer))))
  9. helm-persistent-action-display-window)
  10. ((and helm--buffer-in-new-frame-p helm-initial-frame)
  11. (with-selected-frame helm-initial-frame (selected-window)))
  12. (split-onewindow (split-window))
  13. ((get-mru-window))
  14. (t split-window (get-mru-window nil t))))))
Add Comment
Please, Sign In to add comment