diff options
| -rw-r--r-- | nt/ChangeLog | 5 | ||||
| -rw-r--r-- | nt/runemacs.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index ebda94e80f3..696d320c8bc 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-05-17 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * runemacs.c (WinMain): Support invocation of un-installed | ||
| 4 | nt/runemacs.exe, by looking for src/emacs.exe. | ||
| 5 | |||
| 1 | 2013-05-16 Eli Zaretskii <eliz@gnu.org> | 6 | 2013-05-16 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * inc/stdint.h (SIZE_MAX) [!__GNUC__]: Define. (Bug#14409) | 8 | * inc/stdint.h (SIZE_MAX) [!__GNUC__]: Define. (Bug#14409) |
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) | |||
| 75 | /* Quote executable name in case of spaces in the path. */ | 75 | /* Quote executable name in case of spaces in the path. */ |
| 76 | *new_cmdline = '"'; | 76 | *new_cmdline = '"'; |
| 77 | strcpy (new_cmdline + 1, modname); | 77 | strcpy (new_cmdline + 1, modname); |
| 78 | /* Detect and handle un-installed runemacs.exe in nt/ subdirectory, | ||
| 79 | while emacs.exe is in src/. */ | ||
| 80 | if ((p = strrchr (new_cmdline, '\\')) != NULL | ||
| 81 | && stricmp (p, "\\nt") == 0) | ||
| 82 | strcpy (p, "\\src"); | ||
| 78 | 83 | ||
| 79 | #ifdef CHOOSE_NEWEST_EXE | 84 | #ifdef CHOOSE_NEWEST_EXE |
| 80 | { | 85 | { |