]> git.eshelyaron.com Git - emacs.git/commitdiff
Give more helpful warning about setting HOME
authorNoam Postavsky <npostavs@gmail.com>
Sat, 25 Jun 2016 16:24:06 +0000 (12:24 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 27 Jun 2016 00:44:23 +0000 (20:44 -0400)
* 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>
src/w32.c

index c26f14593f1e0adf1170869253540cc5fac021c0..6948fdeeef3cc4e14c7ae2f64cd4512b6dd5dfe3 100644 (file)
--- a/src/w32.c
+++ b/src/w32.c
@@ -2773,10 +2773,13 @@ 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")),
-                            Vdelayed_warnings_list);
+                    = 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);
              }
 
            if (lpval)