unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: yary <not.com@gmail.com>, Juanma Barranquero <lekktu@gmail.com>,
	Michael <mblischke@att.net>,
	11612@debbugs.gnu.org, Jason Rumney <jasonr@gnu.org>
Subject: bug#11612: 24.1; Defaults create warning on startup
Date: Sat, 25 Jun 2016 09:42:31 -0400	[thread overview]
Message-ID: <CAM-tV-8fVJ55Xj4BENwExkP5-qTDJbOr5346H6k7+gj5cgDnvg@mail.gmail.com> (raw)
In-Reply-To: <834m8h1y5q.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 778 bytes --]

On Sat, Jun 25, 2016 at 4:16 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> FWIW, repeating the OP's recipe, Emacs now starts with a split-window
> configuration, with the selected window showing the *scratch* buffer,
> and the *Warnings* buffer displaying the above-mentioned warning.  So
> I'm not sure the original complaint is still valid.

I think the complaint is more about the wording of the message and
less about the buffer/window configuration. So I propose rewording it
to

    Use of `C:\.emacs' to define `HOME' is deprecated, see (emacs)
`Windows Home'

This way the user will be pointed to the relevant section of the
manual, and since the warning uses the same phrasing as the manual,
searching for the warning should turn up links to that manual section
as well.

[-- Attachment #2: 0001-Give-more-helpful-warning-about-setting-HOME.patch --]
[-- Type: text/x-patch, Size: 1252 bytes --]

From 7f005e4fbde188125204aae5ca0620dc953179ad Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs@gmail.com>
Date: Sat, 25 Jun 2016 09:26:12 -0400
Subject: [PATCH] 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).
---
 src/w32.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/w32.c b/src/w32.c
index c26f145..f37cb62 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -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' to "
+                                            "define `HOME' is deprecated,"
+                                            "see (emacs) `Windows Home'.")),
 			     Vdelayed_warnings_list);
 	      }
 
-- 
2.8.0


  reply	other threads:[~2016-06-25 13:42 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-02 18:58 bug#11612: 24.1; Defaults create warning on startup yary
2012-06-02 19:18 ` Eli Zaretskii
2012-06-02 19:43   ` yary
2012-06-02 19:46     ` Drew Adams
2012-06-02 19:57       ` yary
2013-04-23 14:05         ` Michael
2013-04-23 17:54           ` Eli Zaretskii
2012-06-03 19:38       ` Juanma Barranquero
2012-06-04  3:50       ` Jason Rumney
2012-06-04  4:22         ` Eli Zaretskii
2012-06-04 13:24         ` Drew Adams
2016-06-25  3:28 ` Noam Postavsky
2016-06-25  4:31   ` Drew Adams
2016-06-25  8:16   ` Eli Zaretskii
2016-06-25 13:42     ` Noam Postavsky [this message]
2016-06-25 13:51       ` yary
2016-06-25 14:18       ` Eli Zaretskii
2016-06-25 15:30         ` Noam Postavsky
2016-06-25 15:40           ` Eli Zaretskii
2016-06-27  1:01             ` Noam Postavsky
2016-06-27 11:15               ` Andy Moreton
2016-06-27 12:04                 ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM-tV-8fVJ55Xj4BENwExkP5-qTDJbOr5346H6k7+gj5cgDnvg@mail.gmail.com \
    --to=npostavs@users.sourceforge.net \
    --cc=11612@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=jasonr@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=mblischke@att.net \
    --cc=not.com@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).