mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-07 20:59:37 +00:00
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: Eli Zaretskii <eliz@gnu.org>
This commit is contained in:
parent
ea6b01d4d4
commit
fd9fad062f
1 changed files with 7 additions and 4 deletions
11
src/w32.c
11
src/w32.c
|
@ -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."))),
|
||||||
|
Vdelayed_warnings_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lpval)
|
if (lpval)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue