a guest Jan 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))))))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand