aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNoam Postavsky2016-06-25 12:24:06 -0400
committerNoam Postavsky2016-06-26 20:44:23 -0400
commitfd9fad062f45d041260e1678311f08ffa926bfff (patch)
treec86a7a4336bcc64bf4e92bce8fe6045095f1cb88 /src
parentea6b01d4d4638eb4554f41c9201997e4616cbbf9 (diff)
downloademacs-fd9fad062f45d041260e1678311f08ffa926bfff.tar.gz
emacs-fd9fad062f45d041260e1678311f08ffa926bfff.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/w32.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/w32.c b/src/w32.c
index c26f14593f1..6948fdeeef3 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -2773,10 +2773,13 @@ init_environment (char ** argv)
2773 } 2773 }
2774 if (strcmp (env_vars[i].name, "HOME") == 0 && !appdata) 2774 if (strcmp (env_vars[i].name, "HOME") == 0 && !appdata)
2775 Vdelayed_warnings_list 2775 Vdelayed_warnings_list
2776 = Fcons (listn (CONSTYPE_HEAP, 2, 2776 = Fcons
2777 intern ("initialization"), 2777 (listn (CONSTYPE_HEAP, 2,
2778 build_string ("Setting HOME to C:\\ by default is deprecated")), 2778 intern ("initialization"), build_string
2779 Vdelayed_warnings_list); 2779 ("Use of `C:\\.emacs' without defining `HOME' "
2780 "in the environment is deprecated,\n"
2781 "see `Windows Home' in the Emacs manual."))),
2782 Vdelayed_warnings_list);
2780 } 2783 }
2781 2784
2782 if (lpval) 2785 if (lpval)