diff -r ad6fcceaf59b -r d06420c90d8b contrib/mercurial.el --- a/contrib/mercurial.el Mon Aug 22 15:29:55 2005 -0700 +++ b/contrib/mercurial.el Tue Aug 23 14:51:52 2005 -0700 @@ -67,11 +67,10 @@ :group 'tools) (defcustom hg-binary - (dolist (path '("~/bin/hg" - "/usr/bin/hg" - "/usr/local/bin/hg")) - (when (file-executable-p path) - (return path))) + (or (executable-find "hg") + (dolist (path '("~/bin/hg" "/usr/bin/hg" "/usr/local/bin/hg")) + (when (file-executable-p path) + (return path)))) "The path to Mercurial's hg executable." :type '(file :must-match t) :group 'mercurial)