summaryrefslogtreecommitdiff
path: root/helm-utils.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-03-30 22:00:04 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-03-30 22:00:04 +0200
commit93441f24bd1e4f97f185b490ec23f74033b1ada6 (patch)
treefb5a8aa60e1fa600ba607fa3c9a50920a099095c /helm-utils.el
parent7a1193909cf6e93b63b0a1c28e205d5ff38ed88b (diff)
Expand file name in helm-quit-and-find-file.
* helm-utils.el (helm-quit-and-find-file): Do it.
Diffstat (limited to 'helm-utils.el')
-rw-r--r--helm-utils.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/helm-utils.el b/helm-utils.el
index 1a8360a5..a835a260 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -369,7 +369,8 @@ from its directory."
(eq major-mode 'org-agenda-mode))
org-directory
(expand-file-name org-directory))
- (with-current-buffer buf default-directory)))
+ (with-current-buffer buf
+ (expand-file-name default-directory))))
;; imenu (marker).
(marker
(or (buffer-file-name (marker-buffer (cdr sel)))
@@ -379,7 +380,7 @@ from its directory."
(if (and ffap-url-regexp
(string-match ffap-url-regexp it))
it (expand-file-name it))
- default-directory))
+ (expand-file-name default-directory)))
((and (stringp sel) (or (file-remote-p sel)
(file-exists-p sel)))
(expand-file-name sel))
@@ -389,11 +390,11 @@ from its directory."
;; Occur.
(grep-line
(with-current-buffer (get-buffer (car grep-line))
- (or (buffer-file-name) default-directory)))
+ (expand-file-name (or (buffer-file-name) default-directory))))
;; Url.
((and (stringp sel) ffap-url-regexp (string-match ffap-url-regexp sel)) sel)
;; Default.
- (t default-preselection))))))
+ (t (expand-file-name default-preselection)))))))
(put 'helm-quit-and-find-file 'helm-only t)
(defun helm-generic-sort-fn (s1 s2)