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
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue