summaryrefslogtreecommitdiff
path: root/helm-utils.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-09-08 21:53:45 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-09-08 21:53:45 +0200
commit3c865ecc95a72055086c50828234dfbbec1e717b (patch)
tree73c0f28edc4402cc11f0d748bdde288e74e4d915 /helm-utils.el
parent9b9dc807e3463c80fa24162ad1560abf152fa7c4 (diff)
Make several tramp related functions private
and fix their prefix. * helm-files.el (helm-ff-update-when-only-one-matched): Renamed with "helm-ff--" prefix. (helm-ff--create-tramp-name): Renamed with "helm-ff--" prefix. (helm-ff--tramp-cons-or-vector): Renamed with "helm-ff--" prefix. (helm-ff--get-tramp-methods): Renamed with "helm-ff--" prefix. (helm-ff--previous-mh-tramp-method): Renamed with "helm-ff--" prefix. (helm-ff--get-host-from-tramp-invalid-fname): Renamed with "helm-ff--" prefix. (helm-ff--tramp-hostnames): Renamed with "helm-ff--" prefix. (helm-ff--invalid-tramp-name-p): Renamed with "helm-ff--" prefix. (helm-ff--tramp-postfixed-p): Renamed with "helm-ff--" prefix. (helm-ff-before-action-hook-fn): Use new functions names. (helm-ff-set-pattern): Use new functions names. (helm-ff-filter-candidate-one-by-one): Use new functions names. (helm-find-files-get-candidates): Use new functions names. (helm-find-files-persistent-action): Use new functions names. (helm-delete-tramp-connection): Use new functions names. (helm-find-files-up-one-level): Use new functions names. (helm-find-files-down-last-level): Use new functions names. * helm-mode.el (helm-read-file-name): Use new functions names.
Diffstat (limited to 'helm-utils.el')
-rw-r--r--helm-utils.el9
1 files changed, 0 insertions, 9 deletions
diff --git a/helm-utils.el b/helm-utils.el
index ffe14254..252de760 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -430,15 +430,6 @@ that is sorting is done against real value of candidate."
(< (length str1) (length str2)))
(t (> sc1 sc2)))))
-(defun helm-ff-get-host-from-tramp-invalid-fname (fname)
- "Extract hostname from an incomplete tramp file name.
-Return nil on valid file name remote or not."
- (let* ((str (helm-basename fname))
- (split (split-string str ":" t))
- (meth (car (member (car split)
- (helm-ff-get-tramp-methods)))))
- (when meth (car (last split)))))
-
(cl-defun helm-file-human-size (size &optional (kbsize helm-default-kbsize))
"Return a string showing SIZE of a file in human readable form.
SIZE can be an integer or a float depending it's value.