summaryrefslogtreecommitdiff
path: root/helm-utils.el
diff options
context:
space:
mode:
authorPierre Neidhardt <ambrevar@gmail.com>2017-09-29 09:37:44 +0100
committerPierre Neidhardt <ambrevar@gmail.com>2017-09-29 12:33:11 +0100
commitd437b58b8d5a8a9e605848ffa0bb0218651983ad (patch)
treee743df7fccdcf7ba7a489fa3d7c69d4721ce92bd /helm-utils.el
parent3c26ce9045e7e7e8e39ede18bd8204a53f63407a (diff)
Remove helm-simultaneous-find-file
Diffstat (limited to 'helm-utils.el')
-rw-r--r--helm-utils.el32
1 files changed, 0 insertions, 32 deletions
diff --git a/helm-utils.el b/helm-utils.el
index 66498c01..5f390c84 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -286,38 +286,6 @@ This function is suitable for `helm-switch-to-buffers-function'."
(helm-switch-to-buffer-other-window b 'balance)
(error (setq nosplit t) nil)))))
-(defun helm-simultaneous-find-file (files &optional other-window)
- "Find files in FILES list in separate windows.
-If frame is too small to display all windows, continue finding files
-in background.
-When called with a prefix arg split is done vertically."
- (helm-aif (cdr files)
- (progn
- (unless other-window
- (switch-to-buffer (find-file-noselect (car files))))
- (save-selected-window
- (cl-loop with nosplit
- with len = (length it)
- with remaining = 0
- with displayed = 0
- for f in it
- for count from 1
- for buf = (find-file-noselect f)
- unless nosplit do
- (condition-case-unless-debug _err
- (helm-switch-to-buffer-other-window buf 'balance)
- (error
- (setq nosplit t)
- (message
- "%d files displayed, %d files opening in background..."
- (setq displayed count)
- (setq remaining (- len count)))
- nil))
- finally
- (when nosplit
- (message
- "%d files displayed, %d files opened in background"
- displayed remaining)))))))
(defun helm-switch-to-buffer-other-window (buffer-or-name &optional balance)
"Switch to BUFFER-OR-NAME in other window.