diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-05-17 12:35:23 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-05-17 12:35:23 +0300 |
commit | 3e2af3481e94276340f7c00f1c8275bc323f6910 (patch) | |
tree | bfc95973b3f751e6a9d2d9c150a99079e586cc07 /nt/runemacs.c | |
parent | 721c9e8a682721c6010c4c685764cd2359baf46b (diff) | |
download | emacs-3e2af3481e94276340f7c00f1c8275bc323f6910.tar.gz emacs-3e2af3481e94276340f7c00f1c8275bc323f6910.tar.bz2 emacs-3e2af3481e94276340f7c00f1c8275bc323f6910.zip |
Support invocation of un-installed runemacs.exe.
Diffstat (limited to 'nt/runemacs.c')
-rw-r--r-- | nt/runemacs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nt/runemacs.c b/nt/runemacs.c index b090ffdd639..fd1524a9c41 100644 --- a/nt/runemacs.c +++ b/nt/runemacs.c @@ -75,6 +75,11 @@ WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow) /* Quote executable name in case of spaces in the path. */ *new_cmdline = '"'; strcpy (new_cmdline + 1, modname); + /* Detect and handle un-installed runemacs.exe in nt/ subdirectory, + while emacs.exe is in src/. */ + if ((p = strrchr (new_cmdline, '\\')) != NULL + && stricmp (p, "\\nt") == 0) + strcpy (p, "\\src"); #ifdef CHOOSE_NEWEST_EXE { |