aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2012-08-05 23:44:21 +0200
committerAndreas Schwab2012-08-05 23:44:21 +0200
commit8671676ca159dcf36f1791936bcc50c73319af42 (patch)
tree1a16a14a982f5f9992899565dd9e916e06f83518 /src
parent663e2b3f88f9be61399e06dfc0b76700f90c6ca6 (diff)
downloademacs-8671676ca159dcf36f1791936bcc50c73319af42.tar.gz
emacs-8671676ca159dcf36f1791936bcc50c73319af42.zip
* emacs.c (decode_env_path): Only use defaulted if WINDOWSNT.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/emacs.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 55433577cee..61e7c3d8c23 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-08-05 Andreas Schwab <schwab@linux-m68k.org>
2
3 * emacs.c (decode_env_path): Only use defaulted if WINDOWSNT.
4
12012-08-05 Dmitry Antipov <dmantipov@yandex.ru> 52012-08-05 Dmitry Antipov <dmantipov@yandex.ru>
2 6
3 Generalize common compile-time constants. 7 Generalize common compile-time constants.
diff --git a/src/emacs.c b/src/emacs.c
index 223d125db32..8d458c612cc 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -2242,8 +2242,8 @@ decode_env_path (const char *evarname, const char *defalt)
2242{ 2242{
2243 const char *path, *p; 2243 const char *path, *p;
2244 Lisp_Object lpath, element, tem; 2244 Lisp_Object lpath, element, tem;
2245 int defaulted = 0;
2246#ifdef WINDOWSNT 2245#ifdef WINDOWSNT
2246 int defaulted = 0;
2247 const char *emacs_dir = egetenv ("emacs_dir"); 2247 const char *emacs_dir = egetenv ("emacs_dir");
2248 static const char *emacs_dir_env = "%emacs_dir%/"; 2248 static const char *emacs_dir_env = "%emacs_dir%/";
2249 const size_t emacs_dir_len = strlen (emacs_dir_env); 2249 const size_t emacs_dir_len = strlen (emacs_dir_env);
@@ -2259,7 +2259,9 @@ decode_env_path (const char *evarname, const char *defalt)
2259 if (!path) 2259 if (!path)
2260 { 2260 {
2261 path = defalt; 2261 path = defalt;
2262#ifdef WINDOWSNT
2262 defaulted = 1; 2263 defaulted = 1;
2264#endif
2263 } 2265 }
2264#ifdef DOS_NT 2266#ifdef DOS_NT
2265 /* Ensure values from the environment use the proper directory separator. */ 2267 /* Ensure values from the environment use the proper directory separator. */