From: Eli Zaretskii Date: Tue, 16 Apr 2013 16:55:02 +0000 (+0300) Subject: Fixed hard link to emacs.exe in non-MSYS build. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~229^2~63^2~34 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=50aac8891209d63b5793289715026655175b2139;p=emacs.git Fixed hard link to emacs.exe in non-MSYS build. --- diff --git a/lisp/loadup.el b/lisp/loadup.el index 3970e514376..75659d88ac4 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el @@ -414,7 +414,12 @@ (substring name (match-end 0))))) (setq name (concat name exe)) (message "Adding name %s" name) - (add-name-to-file (concat "emacs" exe) name t))) + ;; When this runs on Windows, invocation-directory is not + ;; necessarily the current directory. + (add-name-to-file (expand-file-name (concat "emacs" exe) + invocation-directory) + (expand-file-name name invocation-directory) + t))) (kill-emacs))) ;; For machines with CANNOT_DUMP defined in config.h,