HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ChangeLog fixes
[bpt/emacs.git]
/
nt
/
runemacs.c
diff --git
a/nt/runemacs.c
b/nt/runemacs.c
index
dbb18bc
..
20b6f0c
100644
(file)
--- a/
nt/runemacs.c
+++ b/
nt/runemacs.c
@@
-1,6
+1,6
@@
/* runemacs --- Simple program to start Emacs with its console window hidden.
/* runemacs --- Simple program to start Emacs with its console window hidden.
-Copyright (C) 2001-201
2
Free Software Foundation, Inc.
+Copyright (C) 2001-201
4
Free Software Foundation, Inc.
This file is part of GNU Emacs.
This file is part of GNU Emacs.
@@
-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);
/* 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
{
#ifdef CHOOSE_NEWEST_EXE
{