aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2013-05-17 12:36:54 +0300
committerEli Zaretskii2013-05-17 12:36:54 +0300
commit0a1691786d832afd0e0b681ecc71538fb63eec2b (patch)
tree262a0f40e9a243adae6d1d0583ae1f5a20bedc6d
parente219dd97020be9d2f7bc51de9915d77d56732b66 (diff)
parent3e2af3481e94276340f7c00f1c8275bc323f6910 (diff)
downloademacs-0a1691786d832afd0e0b681ecc71538fb63eec2b.tar.gz
emacs-0a1691786d832afd0e0b681ecc71538fb63eec2b.zip
Support invocation of un-installed runemacs.exe.
nt/runemacs.c (WinMain): Support invocation of un-installed nt/runemacs.exe, by looking for src/emacs.exe.
-rw-r--r--nt/ChangeLog5
-rw-r--r--nt/runemacs.c5
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 @@
12013-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
12013-05-16 Eli Zaretskii <eliz@gnu.org> 62013-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 {