diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-04-15 16:39:41 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-04-15 16:39:41 +0300 |
commit | 7d9fb4de782c3ff316c6ffc26f6ea291be2f653b (patch) | |
tree | 384f50c67bf57e887e0e2c33dbb0c807ceccda5d /nt/addpm.c | |
parent | eb7a410c147507ffdf0e84d163a014acb82b19a2 (diff) | |
download | emacs-7d9fb4de782c3ff316c6ffc26f6ea291be2f653b.tar.gz |
Fixed problems with default paths and with shell-file-name.
Diffstat (limited to 'nt/addpm.c')
-rw-r--r-- | nt/addpm.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nt/addpm.c b/nt/addpm.c index 688e0167334..48c77821c8c 100644 --- a/nt/addpm.c +++ b/nt/addpm.c @@ -50,6 +50,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include <shlobj.h> #include <ddeml.h> +#ifndef OLD_PATHS +#include "../src/epaths.h" +#endif + HDDEDATA CALLBACK DdeCallback (UINT uType, UINT uFmt, HCONV hconv, HSZ hsz1, HSZ hsz2, HDDEDATA hdata, @@ -76,6 +80,7 @@ static struct entry } env_vars[] = { +#ifdef OLD_PATHS {"emacs_dir", NULL}, {"EMACSLOADPATH", "%emacs_dir%/site-lisp;%emacs_dir%/../site-lisp;%emacs_dir%/lisp;%emacs_dir%/leim"}, {"SHELL", "%emacs_dir%/bin/cmdproxy.exe"}, @@ -86,6 +91,18 @@ env_vars[] = /* {"INFOPATH", "%emacs_dir%/info"}, */ {"EMACSDOC", "%emacs_dir%/etc"}, {"TERM", "cmd"} +#else /* !OLD_PATHS */ + {"emacs_dir", NULL}, + {"EMACSLOADPATH", PATH_SITELOADSEARCH ";" PATH_LOADSEARCH}, + {"SHELL", PATH_EXEC "/cmdproxy.exe"}, + {"EMACSDATA", PATH_DATA}, + {"EMACSPATH", PATH_EXEC}, + /* We no longer set INFOPATH because Info-default-directory-list + is then ignored. */ + /* {"INFOPATH", "%emacs_dir%/info"}, */ + {"EMACSDOC", PATH_DOC}, + {"TERM", "cmd"} +#endif }; BOOL |