From 98d87b1288a6102853f6d6cb0607bb5a54747237 Mon Sep 17 00:00:00 2001 From: Mark Hepburn Date: Fri, 21 May 2010 17:13:21 +1000 Subject: [PATCH] magit-interactive-rebase: use locate-file and exec-path to find emacsclient, instead of hard-coding to exec-directory --- magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magit.el b/magit.el index 38113818..f8e42ebe 100644 --- a/magit.el +++ b/magit.el @@ -3894,7 +3894,7 @@ With a non numeric prefix ARG, show all entries" (commit (and (member 'commit (magit-section-context-type section)) (magit-section-info section))) (old-editor (getenv "GIT_EDITOR"))) - (setenv "GIT_EDITOR" (expand-file-name "emacsclient" exec-directory)) + (setenv "GIT_EDITOR" (locate-file "emacsclient" exec-path)) (unwind-protect (magit-run-git-async "rebase" "-i" (or (and commit (concat commit "^"))