From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist Newsgroups: gmane.emacs.bugs Subject: bug#27589: Wrong documentation for .emacs lookup on Windows Date: Sat, 8 Jul 2017 00:09:26 +0200 Message-ID: References: <83zicin72p.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1257b290012c0553c17cee" X-Trace: blaine.gmane.org 1499465417 12068 195.159.176.226 (7 Jul 2017 22:10:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Jul 2017 22:10:17 +0000 (UTC) Cc: 27589@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 08 00:10:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTbRv-0002f6-MT for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Jul 2017 00:10:07 +0200 Original-Received: from localhost ([::1]:59010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTbS1-0005cB-0o for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jul 2017 18:10:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTbRt-0005ZN-4j for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 18:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTbRp-0002DA-VZ for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 18:10:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dTbRp-0002D4-Rr for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 18:10:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dTbRp-0005jO-Kj for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 18:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jul 2017 22:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27589 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27589-submit@debbugs.gnu.org id=B27589.149946537421993 (code B ref 27589); Fri, 07 Jul 2017 22:10:01 +0000 Original-Received: (at 27589) by debbugs.gnu.org; 7 Jul 2017 22:09:34 +0000 Original-Received: from localhost ([127.0.0.1]:57156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTbRO-0005if-BJ for submit@debbugs.gnu.org; Fri, 07 Jul 2017 18:09:34 -0400 Original-Received: from mail-qt0-f171.google.com ([209.85.216.171]:32903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTbRM-0005iS-Qa for 27589@debbugs.gnu.org; Fri, 07 Jul 2017 18:09:33 -0400 Original-Received: by mail-qt0-f171.google.com with SMTP id r30so37942560qtc.0 for <27589@debbugs.gnu.org>; Fri, 07 Jul 2017 15:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HjqfRd5oTBo+lIw/SojYwZfURp35mPpFz5DafwmQ3Jo=; b=CrDoaKgxBg30oB8XrgUCmso47fQ7XuessY4QRUsuubWikQ05NQ67pyWK5l+ddlph6X OhXVd0rEuqxsZghOV2j/YfZ4JnIZR5xV5SOsYlOgAaDcgD5WyLnjzFo0SitGFbj65kBY MopCjb+7iEcPFhNKZGvIGROCIcIF0g5gVCUvA5dO9W2kvazP0YydivnHvzV+AaIQNAuz 1uNIy6QFfwbOI0lcsJN2bEnZeZXnO1a1jAIsk/OEHeMy27zCx/CfvmRcngHTawTcRhes OUuYiQ2kfrk2SsBnUE1CJx1AMJJlPr414rrjyN6Tij/bWfFGLDic5T7YlL95Sa0WUwqg s7kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HjqfRd5oTBo+lIw/SojYwZfURp35mPpFz5DafwmQ3Jo=; b=l2lWlUHWv1osrWXzrY9N8rjrkIbSRW9lRF6P65lDGDuewDKyuObyhhGs3aLX1gkYgv ErwCOd0/7wXWKsg0lgHFVGFGSE0jxQQpU63RoJ9EMR58Ztpxs77vBX7a8sSs59x+TW4p FUNTy2EtdwXDmqkajWUwK5kLLdZLqH69VPlSEhbFZ0alWZeuYd53mkMYwts97leN5k2T AAepUc6I/GA9f/CRYmsYqm0tjXZlWOdDT4eQWmcFjdCOLa3JHuECwKucHk8NtDem4Ll7 IW4iMIFICik9OUoqWM088L9qInlGA5EdaurpJMsTMwoPDce4Xs+O0iIBI0I4IqGeFG+l VTWw== X-Gm-Message-State: AIVw1134yfAJt9w3l/bV6lB2iPDNlB5vB+5meqvF6k2Uvhp7WmisRtAX Vb1HFiEYCZpKxpRJ/AFss+NPOPDLojHZ X-Received: by 10.237.51.3 with SMTP id u3mr17756986qtd.155.1499465367157; Fri, 07 Jul 2017 15:09:27 -0700 (PDT) Original-Received: by 10.200.49.57 with HTTP; Fri, 7 Jul 2017 15:09:26 -0700 (PDT) In-Reply-To: <83zicin72p.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134318 Archived-At: --94eb2c1257b290012c0553c17cee Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry, this was a PEBKAC. I had used (setenv "HOME" (concat (getenv "HOMEDRIVE") (getenv "HOMEPATH"))) to set the HOME environment variable from within emacs which I now understand is a terrible idea. 2017-07-05 19:10 GMT+02:00 Eli Zaretskii : > > From: Bj=C3=B6rn Lindqvist > > Date: Wed, 5 Jul 2017 18:08:23 +0200 > > > > Information in these pages is incorrect: > > > > https://www.gnu.org/software/emacs/manual/html_node/emacs/ > Windows-HOME.html > > https://www.gnu.org/software/emacs/manual/html_node/efaq- > w32/Location-of-init-file.html > > > > In my case .emacs is at "C:\Users\bjorn\AppData\Roaming\.emacs" Emacs > does not set the value of the > > HOME variable to that location: > > > > (getenv "HOME") > > "C:\\Users\\bjorn" > > > > And "Within Emacs, <~> at the beginning of a file name is expanded to > your HOME directory, so you can > > always find your .emacs file by typing the command C-x C-f ~/.emacs." i= s > therefore not true: > > > > (expand-file-name "~/.emacs") > > "c:/Users/bjorn/.emacs" > > The information in the manual is correct, I just verified it both in > Emacs 24.5 and 25. The problems that you see are most probably due to > some local issue on your system, like ownership of directories or some > environment variable. > > And btw, what version of Windows is that? And how are you invoking > Emacs? from some shell prompt, from a desktop shortcut, from a > task-bar shortcut, or some other way? > --=20 mvh/best regards Bj=C3=B6rn Lindqvist --94eb2c1257b290012c0553c17cee Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, this was a PEBKAC. I had used=C2=A0=C2=A0(setenv &q= uot;HOME" (concat (getenv "HOMEDRIVE") (getenv "HOMEPAT= H"))) to set the HOME environment variable from within emacs which I n= ow understand is a terrible idea.

<= div class=3D"gmail_quote">2017-07-05 19:10 GMT+02:00 Eli Zaretskii <eliz@gnu.or= g>:
> From: Bj=C3=B6rn L= indqvist <bjourne@gmail.com>=
> Date: Wed, 5 Jul 2017 18:08:23 +0200
>
> Information in these pages is incorrect:
>
> https://www.gnu.org/= software/emacs/manual/html_node/emacs/Windows-HOME.html
> https://= www.gnu.org/software/emacs/manual/html_node/efaq-w32/Location-of-= init-file.html
>
> In my case .emacs is at "C:\Users\bjorn\AppData\Roaming\.ema= cs" Emacs does not set the value of the
> HOME variable to that location:
>
> (getenv "HOME")
> "C:\\Users\\bjorn"
>
> And "Within Emacs, <~> at the beginning of a file name is e= xpanded to your HOME directory, so you can
> always find your .emacs file by typing the command C-x C-f ~/.emacs.&q= uot; is therefore not true:
>
> (expand-file-name "~/.emacs")
> "c:/Users/bjorn/.emacs"

The information in the manual is correct, I just verified it both in=
Emacs 24.5 and 25.=C2=A0 The problems that you see are most probably due to=
some local issue on your system, like ownership of directories or some
environment variable.

And btw, what version of Windows is that?=C2=A0 And how are you invoking Emacs? from some shell prompt, from a desktop shortcut, from a
task-bar shortcut, or some other way?



--
mvh/best regards Bj= =C3=B6rn Lindqvist
--94eb2c1257b290012c0553c17cee--