From 158ea3153a0abe4d76b0ad2a14b52963191f0253 Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Wed, 22 Sep 2010 12:22:45 -0700 Subject: [PATCH] Use the absolute path of emacs in the Makefile.PL. I have emacs aliased to emacsclient and this was not working properly. --- Makefile.PL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 1f10a84..23e873a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -34,7 +34,8 @@ test_for 'Time::HiRes', 'Basic command timing.'; # try to compile and install Elisp files, but don't die if we can't. $install_el = 0; -$emacs = quotemeta prompt("What is your emacs? ", $ENV{EMACS} || 'emacs'); +my ($sysemacs) = grep { -x $_ } $ENV{EMACS}, glob '/usr/bin{/local,}/emacs'; +$emacs = quotemeta prompt("What is your emacs? ", $sysemacs); @lp = `$emacs --batch --eval '(dolist (x load-path) (princ x) (terpri))' 2>/dev/null`; chomp @lp; for (@lp) { -- 2.11.4.GIT