diff options
| author | Geoff Voelker | 1997-09-03 02:18:15 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1997-09-03 02:18:15 +0000 |
| commit | 9296c0e8d1ac4eb49caf304fe40f229957e21b88 (patch) | |
| tree | 12dbf95b60bfe706cff399c6193fd9d3e03cbad3 | |
| parent | 7f470effe987559a417d979c01f75f2fc80fd165 (diff) | |
| download | emacs-9296c0e8d1ac4eb49caf304fe40f229957e21b88.tar.gz emacs-9296c0e8d1ac4eb49caf304fe40f229957e21b88.zip | |
(env_vars): Put site-lisp before lisp in EMACSLOADPATH.
Quote group name. Allow different icons to be specified.
(env_vars): No longer set INFOPATH.
| -rw-r--r-- | nt/addpm.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/nt/addpm.c b/nt/addpm.c index 56718f9a76b..40e57826e43 100644 --- a/nt/addpm.c +++ b/nt/addpm.c | |||
| @@ -54,12 +54,14 @@ static struct entry | |||
| 54 | env_vars[] = | 54 | env_vars[] = |
| 55 | { | 55 | { |
| 56 | {"emacs_dir", NULL}, | 56 | {"emacs_dir", NULL}, |
| 57 | {"EMACSLOADPATH", "%emacs_dir%/lisp;%emacs_dir%/site-lisp"}, | 57 | {"EMACSLOADPATH", "%emacs_dir%/site-lisp;%emacs_dir%/lisp"}, |
| 58 | {"SHELL", "%emacs_dir/bin/cmdproxy.exe%"}, | 58 | {"SHELL", "%emacs_dir/bin/cmdproxy.exe%"}, |
| 59 | {"EMACSDATA", "%emacs_dir%/etc"}, | 59 | {"EMACSDATA", "%emacs_dir%/etc"}, |
| 60 | {"EMACSPATH", "%emacs_dir%/bin"}, | 60 | {"EMACSPATH", "%emacs_dir%/bin"}, |
| 61 | {"EMACSLOCKDIR", "%emacs_dir%/lock"}, | 61 | {"EMACSLOCKDIR", "%emacs_dir%/lock"}, |
| 62 | {"INFOPATH", "%emacs_dir%/info"}, | 62 | /* We no longer set INFOPATH because Info-default-directory-list |
| 63 | is then ignored. */ | ||
| 64 | /* {"INFOPATH", "%emacs_dir%/info"}, */ | ||
| 63 | {"EMACSDOC", "%emacs_dir%/etc"}, | 65 | {"EMACSDOC", "%emacs_dir%/etc"}, |
| 64 | {"TERM", "cmd"} | 66 | {"TERM", "cmd"} |
| 65 | }; | 67 | }; |
| @@ -111,7 +113,7 @@ main (argc, argv) | |||
| 111 | HSZ ProgMan; | 113 | HSZ ProgMan; |
| 112 | char modname[MAX_PATH]; | 114 | char modname[MAX_PATH]; |
| 113 | char additem[MAX_PATH*2 + 100]; | 115 | char additem[MAX_PATH*2 + 100]; |
| 114 | char *lpext; | 116 | char *prog_name; |
| 115 | char *emacs_path; | 117 | char *emacs_path; |
| 116 | char *p; | 118 | char *p; |
| 117 | 119 | ||
| @@ -160,19 +162,23 @@ main (argc, argv) | |||
| 160 | } | 162 | } |
| 161 | } | 163 | } |
| 162 | 164 | ||
| 163 | lpext = add_registry (emacs_path) ? "exe" : "bat"; | 165 | prog_name = add_registry (emacs_path) ? "runemacs.exe" : "emacs.bat"; |
| 164 | 166 | ||
| 165 | DdeInitialize (&idDde, (PFNCALLBACK)DdeCallback, APPCMD_CLIENTONLY, 0); | 167 | DdeInitialize (&idDde, (PFNCALLBACK)DdeCallback, APPCMD_CLIENTONLY, 0); |
| 166 | 168 | ||
| 167 | ProgMan = DdeCreateStringHandle (idDde, "PROGMAN", CP_WINANSI); | 169 | ProgMan = DdeCreateStringHandle (idDde, "PROGMAN", CP_WINANSI); |
| 168 | 170 | ||
| 169 | if (HConversation = DdeConnect (idDde, ProgMan, ProgMan, NULL)) | 171 | HConversation = DdeConnect (idDde, ProgMan, ProgMan, NULL); |
| 172 | if (HConversation != 0) | ||
| 170 | { | 173 | { |
| 171 | DdeCommand ("[CreateGroup (Gnu Emacs)]"); | 174 | DdeCommand ("[CreateGroup (\"Gnu Emacs\")]"); |
| 172 | DdeCommand ("[ReplaceItem (Emacs)]"); | 175 | DdeCommand ("[ReplaceItem (Emacs)]"); |
| 173 | sprintf (additem, "[AddItem (%s\\bin\\runemacs.%s, Emacs%c%s)]", | 176 | if (argc > 2) |
| 174 | emacs_path, lpext, (argc>2 ? ',' : ' '), | 177 | sprintf (additem, "[AddItem (\"%s\\bin\\%s\", Emacs, \"%s\")]", |
| 175 | (argc>2 ? argv[2] : "")); | 178 | emacs_path, prog_name, argv[2]); |
| 179 | else | ||
| 180 | sprintf (additem, "[AddItem (\"%s\\bin\\%s\", Emacs)]", | ||
| 181 | emacs_path, prog_name); | ||
| 176 | DdeCommand (additem); | 182 | DdeCommand (additem); |
| 177 | 183 | ||
| 178 | DdeDisconnect (HConversation); | 184 | DdeDisconnect (HConversation); |