emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 fd9fad0: Give more helpful warning about setting


From: Noam Postavsky
Subject: [Emacs-diffs] emacs-25 fd9fad0: Give more helpful warning about setting HOME
Date: Mon, 27 Jun 2016 01:00:03 +0000 (UTC)

branch: emacs-25
commit fd9fad062f45d041260e1678311f08ffa926bfff
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    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 <address@hidden>
---
 src/w32.c |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/w32.c b/src/w32.c
index c26f145..6948fde 100644
--- 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]