diff options
| author | Juanma Barranquero | 2006-10-29 22:47:15 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-10-29 22:47:15 +0000 |
| commit | 4da0d3f79497d682853fbe9ccb4390092b9e202d (patch) | |
| tree | 61d314520d9c02f5a398ed50002b4db4883ab8a5 | |
| parent | 4713fa76679f99ef2738f7b0366e3e3bb98fedd6 (diff) | |
| download | emacs-4da0d3f79497d682853fbe9ccb4390092b9e202d.tar.gz emacs-4da0d3f79497d682853fbe9ccb4390092b9e202d.zip | |
(WinMain): Process all recognized arguments, not just the first one.
Remove unused variable sec_desc.
| -rw-r--r-- | nt/ChangeLog | 9 | ||||
| -rw-r--r-- | nt/runemacs.c | 26 |
2 files changed, 21 insertions, 14 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 1283120db0d..ebdbf5b2b23 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-10-29 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * runemacs.c (WinMain): Process all recognized arguments, not just | ||
| 4 | the first one. Remove unused variable sec_desc. | ||
| 5 | |||
| 1 | 2006-09-24 Eli Zaretskii <eliz@gnu.org> | 6 | 2006-09-24 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * config.nt (HAVE_LANGINFO_CODESET): Define. | 8 | * config.nt (HAVE_LANGINFO_CODESET): Define. |
| @@ -63,7 +68,7 @@ | |||
| 63 | 68 | ||
| 64 | 2005-07-30 Eli Zaretskii <eliz@gnu.org> | 69 | 2005-07-30 Eli Zaretskii <eliz@gnu.org> |
| 65 | 70 | ||
| 66 | * config.nt: (HAVE_GETOPT_H, HAVE_GETOPT_LONG_ONLY): Undefine. | 71 | * config.nt (HAVE_GETOPT_H, HAVE_GETOPT_LONG_ONLY): Undefine. |
| 67 | 72 | ||
| 68 | 2005-07-29 Juanma Barranquero <lekktu@gmail.com> | 73 | 2005-07-29 Juanma Barranquero <lekktu@gmail.com> |
| 69 | 74 | ||
| @@ -437,7 +442,7 @@ | |||
| 437 | 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il> | 442 | 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il> |
| 438 | 443 | ||
| 439 | * configure.bat: Make the checkw32api* labels be distinct in the | 444 | * configure.bat: Make the checkw32api* labels be distinct in the |
| 440 | first 8 characters. | 445 | first 8 characters. |
| 441 | 446 | ||
| 442 | 2001-03-17 Andrew Innes <andrewi@gnu.org> | 447 | 2001-03-17 Andrew Innes <andrewi@gnu.org> |
| 443 | 448 | ||
diff --git a/nt/runemacs.c b/nt/runemacs.c index c43c7b61366..d820a92acbb 100644 --- a/nt/runemacs.c +++ b/nt/runemacs.c | |||
| @@ -33,7 +33,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 33 | is running emacs.exe already, you cannot install a newer version. | 33 | is running emacs.exe already, you cannot install a newer version. |
| 34 | By defining CHOOSE_NEWEST_EXE, you can name your new emacs.exe | 34 | By defining CHOOSE_NEWEST_EXE, you can name your new emacs.exe |
| 35 | something else which matches "emacs*.exe", and runemacs will | 35 | something else which matches "emacs*.exe", and runemacs will |
| 36 | automatically select the newest emacs executeable in the bin directory. | 36 | automatically select the newest emacs executable in the bin directory. |
| 37 | (So you'll probably be able to delete the old version some hours/days | 37 | (So you'll probably be able to delete the old version some hours/days |
| 38 | later). | 38 | later). |
| 39 | */ | 39 | */ |
| @@ -49,7 +49,6 @@ WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow) | |||
| 49 | { | 49 | { |
| 50 | STARTUPINFO start; | 50 | STARTUPINFO start; |
| 51 | SECURITY_ATTRIBUTES sec_attrs; | 51 | SECURITY_ATTRIBUTES sec_attrs; |
| 52 | SECURITY_DESCRIPTOR sec_desc; | ||
| 53 | PROCESS_INFORMATION child; | 52 | PROCESS_INFORMATION child; |
| 54 | int wait_for_child = FALSE; | 53 | int wait_for_child = FALSE; |
| 55 | DWORD priority_class = NORMAL_PRIORITY_CLASS; | 54 | DWORD priority_class = NORMAL_PRIORITY_CLASS; |
| @@ -85,13 +84,13 @@ WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow) | |||
| 85 | goto error; | 84 | goto error; |
| 86 | do | 85 | do |
| 87 | { | 86 | { |
| 88 | if (wfd.ftLastWriteTime.dwHighDateTime > best_time.dwHighDateTime | 87 | if (wfd.ftLastWriteTime.dwHighDateTime > best_time.dwHighDateTime |
| 89 | || (wfd.ftLastWriteTime.dwHighDateTime == best_time.dwHighDateTime | 88 | || (wfd.ftLastWriteTime.dwHighDateTime == best_time.dwHighDateTime |
| 90 | && wfd.ftLastWriteTime.dwLowDateTime > best_time.dwLowDateTime)) | 89 | && wfd.ftLastWriteTime.dwLowDateTime > best_time.dwLowDateTime)) |
| 91 | { | 90 | { |
| 92 | best_time = wfd.ftLastWriteTime; | 91 | best_time = wfd.ftLastWriteTime; |
| 93 | strcpy (best_name, wfd.cFileName); | 92 | strcpy (best_name, wfd.cFileName); |
| 94 | } | 93 | } |
| 95 | } | 94 | } |
| 96 | while (FindNextFile (fh, &wfd)); | 95 | while (FindNextFile (fh, &wfd)); |
| 97 | FindClose (fh); | 96 | FindClose (fh); |
| @@ -109,9 +108,9 @@ WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow) | |||
| 109 | { | 108 | { |
| 110 | if (strncmp (cmdline+1, "wait", 4) == 0) | 109 | if (strncmp (cmdline+1, "wait", 4) == 0) |
| 111 | { | 110 | { |
| 112 | wait_for_child = TRUE; | 111 | wait_for_child = TRUE; |
| 113 | cmdline += 5; | 112 | cmdline += 5; |
| 114 | } | 113 | } |
| 115 | else if (strncmp (cmdline+1, "high", 4) == 0) | 114 | else if (strncmp (cmdline+1, "high", 4) == 0) |
| 116 | { | 115 | { |
| 117 | priority_class = HIGH_PRIORITY_CLASS; | 116 | priority_class = HIGH_PRIORITY_CLASS; |
| @@ -124,7 +123,10 @@ WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow) | |||
| 124 | } | 123 | } |
| 125 | else | 124 | else |
| 126 | break; | 125 | break; |
| 126 | /* Look for next argument. */ | ||
| 127 | while (*++cmdline == ' '); | ||
| 127 | } | 128 | } |
| 129 | |||
| 128 | strcat (new_cmdline, cmdline); | 130 | strcat (new_cmdline, cmdline); |
| 129 | 131 | ||
| 130 | /* Set emacs_dir variable if runemacs was in "%emacs_dir%\bin". */ | 132 | /* Set emacs_dir variable if runemacs was in "%emacs_dir%\bin". */ |