summaryrefslogtreecommitdiff
path: root/helm-utils.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-01-20 18:08:48 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-01-20 18:08:48 +0100
commitd17b8bcf0f9fdabc9efc18965234fc8920ba8eab (patch)
treef7772e2486239fbc65158893082258f2378cdfa2 /helm-utils.el
parenta1c7927bfcdb8410dae3c848336c9f5afe58e679 (diff)
* helm-utils.el (helm-find-file-as-root): Fix, use let*.
Diffstat (limited to 'helm-utils.el')
-rw-r--r--helm-utils.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/helm-utils.el b/helm-utils.el
index 03c7b073..d7c49ab5 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -816,12 +816,12 @@ directory, open this directory."
(helm-highlight-current-line)))
(defun helm-find-file-as-root (candidate)
- (let ((buf (helm-basename candidate))
- (host (file-remote-p candidate 'host))
- (path (concat "/" helm-su-or-sudo
- ":%s:" (expand-file-name candidate)))
- (remote-path (format path (or host "")))
- non-essential)
+ (let* ((buf (helm-basename candidate))
+ (host (file-remote-p candidate 'host))
+ (path (concat "/" helm-su-or-sudo
+ ":%s:" (expand-file-name candidate)))
+ (remote-path (format path (or host "")))
+ non-essential)
(if (buffer-live-p (get-buffer buf))
(progn
(set-buffer buf)