Commit fd9fad06 authored by Noam Postavsky's avatar Noam Postavsky
Browse files

Give more helpful warning about setting HOME

* src/w32.c (init_environment): Improve warning message that pops when
Emacs sets HOME according to existence of C:\.emacs (Bug #11612).
Co-authored-by: default avatarEli Zaretskii <>
parent ea6b01d4
...@@ -2773,10 +2773,13 @@ init_environment (char ** argv) ...@@ -2773,10 +2773,13 @@ init_environment (char ** argv)
} }
if (strcmp (env_vars[i].name, "HOME") == 0 && !appdata) if (strcmp (env_vars[i].name, "HOME") == 0 && !appdata)
Vdelayed_warnings_list Vdelayed_warnings_list
= Fcons (listn (CONSTYPE_HEAP, 2, = Fcons
intern ("initialization"), (listn (CONSTYPE_HEAP, 2,
build_string ("Setting HOME to C:\\ by default is deprecated")), intern ("initialization"), build_string
Vdelayed_warnings_list); ("Use of `C:\\.emacs' without defining `HOME' "
"in the environment is deprecated,\n"
"see `Windows Home' in the Emacs manual."))),
} }
if (lpval) if (lpval)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment