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 <eliz@gnu.org>
parent ea6b01d4
......@@ -2773,9 +2773,12 @@ init_environment (char ** argv)
}
if (strcmp (env_vars[i].name, "HOME") == 0 && !appdata)
Vdelayed_warnings_list
= Fcons (listn (CONSTYPE_HEAP, 2,
intern ("initialization"),
build_string ("Setting HOME to C:\\ by default is deprecated")),
= Fcons
(listn (CONSTYPE_HEAP, 2,
intern ("initialization"), build_string
("Use of `C:\\.emacs' without defining `HOME' "
"in the environment is deprecated,\n"
"see `Windows Home' in the Emacs manual."))),
Vdelayed_warnings_list);
}
......
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