From unknown Fri Sep 05 09:11:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27589 <27589@debbugs.gnu.org> To: bug#27589 <27589@debbugs.gnu.org> Subject: Status: Wrong documentation for .emacs lookup on Windows Reply-To: bug#27589 <27589@debbugs.gnu.org> Date: Fri, 05 Sep 2025 16:11:04 +0000 retitle 27589 Wrong documentation for .emacs lookup on Windows reassign 27589 emacs submitter 27589 Bj=C3=B6rn Lindqvist severity 27589 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 05 12:08:38 2017 Received: (at submit) by debbugs.gnu.org; 5 Jul 2017 16:08:38 +0000 Received: from localhost ([127.0.0.1]:53600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSmr0-0001zd-6z for submit@debbugs.gnu.org; Wed, 05 Jul 2017 12:08:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSmqy-0001zR-Hq for submit@debbugs.gnu.org; Wed, 05 Jul 2017 12:08:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSmqs-0005xA-0Z for submit@debbugs.gnu.org; Wed, 05 Jul 2017 12:08:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57584) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dSmqr-0005x1-Sx for submit@debbugs.gnu.org; Wed, 05 Jul 2017 12:08:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSmqq-0006yo-M8 for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 12:08:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSmqp-0005w3-F7 for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 12:08:28 -0400 Received: from mail-qt0-x235.google.com ([2607:f8b0:400d:c0d::235]:33178) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSmqp-0005vL-AX for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 12:08:27 -0400 Received: by mail-qt0-x235.google.com with SMTP id r30so190208753qtc.0 for ; Wed, 05 Jul 2017 09:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GjT9vPV+T7AN0KkGN2rGcgOBpWrQ0J3Tf0mEfkbYlvI=; b=F0Evnf0mm5+07hD38De/FBak4OGH7Plq9hG/DBhwVHQaMGvmKZktSRY5l1l2luM3TQ 7/5hOdKTYtzOGzJYNtijVeox350x4TSakuBd0sApEXmT69R0GhIF7iIFQRQT5FzEG0kn cy6OOUYadbP5Pk1nMSCYW5fLjayBHpld4xUrECjoM6E28Wj9ye6OZ9WJgnrL8buPc/Fc eh94rf8ml0NImdUrv/k3aLC2UaxptqOWoIiATA7YHTvvvCt/QZzPdJVvS3Pf1JdODsoU l1FDMRvU7ACP4xEBGAnN1+dWgKdLFwqUblk77ZrtgJmXSXb7msT2c5uVTPwqdEW8XoMI 4kBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GjT9vPV+T7AN0KkGN2rGcgOBpWrQ0J3Tf0mEfkbYlvI=; b=Ys3vCbtafM4i3LtYne+HsW9CUqo5hN2PPHQrvHe+eXhGV/3l/pfi6pXcb/Ky+7jOxL KNdroH0mb1JgPNPFH5uhaiVVmRM0aJBt8E/zLhvUn2/+wWHByzymSZOlO2sxFJpesV6n kvmDMJjpUOE+xnDYuYT6KOlzqPli7Yshm76IjyJzbu1ULZL5ZJsra9UJ2cBJYvJt0d5i IXRm6VXakwGSX7QWTW+AzHsPLD5K6M7oIG5RAgtMqDNZM9eKhpj+CqWixjD8s3DUADAa SJGbOwjICTh6W2CpXHvnArrFSPiDKrrOPcmG+mI84pHpA8n2SgfP+YiIwO/eSD9N+Sfl uemw== X-Gm-Message-State: AKS2vOx5yzF9KBmLeUheqLCcXeWHVCsKMRjqFyxfi+gXu8NwCLySOYkl zMqAcPHbfJExV2pSYk9cjNYW8ln2ocvE X-Received: by 10.200.53.78 with SMTP id z14mr53931535qtb.184.1499270904637; Wed, 05 Jul 2017 09:08:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.49.57 with HTTP; Wed, 5 Jul 2017 09:08:23 -0700 (PDT) From: =?UTF-8?Q?Bj=C3=B6rn_Lindqvist?= Date: Wed, 5 Jul 2017 18:08:23 +0200 Message-ID: Subject: Wrong documentation for .emacs lookup on Windows To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="001a113784fcb16f3c05539435cb" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a113784fcb16f3c05539435cb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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-in= it-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." is therefore not true: (expand-file-name "~/.emacs") "c:/Users/bjorn/.emacs" --=20 mvh/best regards Bj=C3=B6rn Lindqvist --001a113784fcb16f3c05539435cb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 t= hat 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." is therefore not true:

= (expand-file-name "~/.emacs")
"c:/Users/bjorn/.ema= cs"


--
mvh/best regards Bj=C3=B6rn Lindqvist
--001a113784fcb16f3c05539435cb-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 05 12:16:30 2017 Received: (at 27589) by debbugs.gnu.org; 5 Jul 2017 16:16:30 +0000 Received: from localhost ([127.0.0.1]:53609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSmyc-0002Ax-0v for submit@debbugs.gnu.org; Wed, 05 Jul 2017 12:16:30 -0400 Received: from mail-qk0-f171.google.com ([209.85.220.171]:33601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSmya-0002Aj-5g for 27589@debbugs.gnu.org; Wed, 05 Jul 2017 12:16:28 -0400 Received: by mail-qk0-f171.google.com with SMTP id v143so109685692qkb.0 for <27589@debbugs.gnu.org>; Wed, 05 Jul 2017 09:16:28 -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; bh=k0PAb4RZxXxN2WwMVK61mlRolPMU9WjgdU110CwpHxA=; b=UhdStOX81zmSje7tmsFbysyFRxWDpXHu27EKTD3+GgzxsFf6YJqa55/YsJXc/SFpQZ ZrjrpP9sZWgTAeCb/pjWMIywmvQ/M7ffkmw9Tof0lPuL7mwk/Niv5GYwkJ1ruRxnAxqz 6PUU0xK6Rey23WLd/2zbXl4ij2M1yUTrLJ19e8HIIM6n3micEZHE5rhlyy9cxjcjs8VL lPInmLjGCsmolub34cLiqkijmXXsOZc//lR+rZfEzBe1VD3Xp5CYKZN4HAJ6lI8ZTQbC EEa0a0xZu+uIsQJtD5ctk/OZ7wVyp3gv/oiqd3/6l2t4iTF9LB+LKmMEeavKUovLjXBp QcXA== 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; bh=k0PAb4RZxXxN2WwMVK61mlRolPMU9WjgdU110CwpHxA=; b=KEFUwwezzEr27R+3zWOEJBepHq6UY8p2txjSH59tP9IBJ9tmkVK1AOZNEOvhZWpTkV jqceI4qNoX9TSaJ/4hiaZiRpqK4MOk9xtdsmb22552Ud7NZ8XDwHgZNdhpZz+/hbK77D vdWRahzJXHavqK98KpVaMKL6u+buaMFDTEKimi1wSlsnkLX3wZu/IZxTeZmR0/Wbg8g1 Q+unBNJRKtdtxPUX3cLv6MKuMXdCfVa/iUA3QQENjZzMZ2l9Dpl9EuZlDc/VtHmd6Jyt LI+ZuAB/oIJCwwZotbJ9QQUa3KzUCAXf/nMTYSZuP7Y6uHpwjVBvTSND4ApXTdIzGCsY I+YA== X-Gm-Message-State: AKS2vOzkslS+JnKF34deH2ga5aNzXf68bQKKZw+h1KZYm8DNeshLXCPj 7ynYe9/l4UJboCvHsCtlAPRzOyuFIEyZ X-Received: by 10.55.181.71 with SMTP id e68mr52651229qkf.91.1499271382359; Wed, 05 Jul 2017 09:16:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.49.57 with HTTP; Wed, 5 Jul 2017 09:16:21 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Bj=C3=B6rn_Lindqvist?= Date: Wed, 5 Jul 2017 18:16:21 +0200 Message-ID: Subject: Re: bug#27589: Wrong documentation for .emacs lookup on Windows To: 27589@debbugs.gnu.org Content-Type: multipart/alternative; boundary="94eb2c06e9682ae2520553945212" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27589 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --94eb2c06e9682ae2520553945212 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oops, forgot to mention version 24.5.1. Also if I try to open the file "c:/Users/bjorn/AppData/Roaming/.emacs" something weird happens and Emacs redirects me to the file "c:/Users/bjorn/.emacs" instead. 2017-07-05 18:08 GMT+02:00 Bj=C3=B6rn Lindqvist : > 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 you= r > HOME directory, so you can always find your .emacs file by typing the > command C-x C-f ~/.emacs." is therefore not true: > > (expand-file-name "~/.emacs") > "c:/Users/bjorn/.emacs" > > > -- > mvh/best regards Bj=C3=B6rn Lindqvist > --=20 mvh/best regards Bj=C3=B6rn Lindqvist --94eb2c06e9682ae2520553945212 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Oops, forgot to mention version 24.5.1. Also if I try to o= pen the file "c:/Users/bjorn/AppData/Roaming/.emacs" something we= ird happens and Emacs redirects me to the file "c:/Users/bjorn/.emacs&= quot; instead.

2017-07-05 18:08 GMT+02:00 Bj=C3=B6rn Lindqvist <bjourne@gmail.com&= gt;:
Information = in these pages is incorrect:


In my case .emacs is at &q= uot;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 fil= e name is expanded to your HOME directory, so you can always find your .ema= cs file by typing the command C-x C-f ~/.emacs." is therefore not true= :

(expand-file-name "~/.emacs")
"c:/Users/bjorn/.emacs"
=


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



--
mvh/best regards Bj= =C3=B6rn Lindqvist
--94eb2c06e9682ae2520553945212-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 05 13:10:34 2017 Received: (at 27589) by debbugs.gnu.org; 5 Jul 2017 17:10:34 +0000 Received: from localhost ([127.0.0.1]:53652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSnow-0005FG-8w for submit@debbugs.gnu.org; Wed, 05 Jul 2017 13:10:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSnou-0005F4-Pp for 27589@debbugs.gnu.org; Wed, 05 Jul 2017 13:10:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSnok-0000kZ-Q2 for 27589@debbugs.gnu.org; Wed, 05 Jul 2017 13:10:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSnok-0000kU-Nb; Wed, 05 Jul 2017 13:10:22 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2853 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dSnok-0007P5-1L; Wed, 05 Jul 2017 13:10:22 -0400 Date: Wed, 05 Jul 2017 20:10:06 +0300 Message-Id: <83zicin72p.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Bj=C3=B6rn?= Lindqvist In-reply-to: (message from =?utf-8?Q?Bj=C3=B6rn?= Lindqvist on Wed, 5 Jul 2017 18:08:23 +0200) Subject: Re: bug#27589: Wrong documentation for .emacs lookup on Windows References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27589 Cc: 27589@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Björn 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." 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. 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? From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 07 18:09:34 2017 Received: (at 27589) by debbugs.gnu.org; 7 Jul 2017 22:09:34 +0000 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 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 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) MIME-Version: 1.0 Received: by 10.200.49.57 with HTTP; Fri, 7 Jul 2017 15:09:26 -0700 (PDT) In-Reply-To: <83zicin72p.fsf@gnu.org> References: <83zicin72p.fsf@gnu.org> From: =?UTF-8?Q?Bj=C3=B6rn_Lindqvist?= Date: Sat, 8 Jul 2017 00:09:26 +0200 Message-ID: Subject: Re: bug#27589: Wrong documentation for .emacs lookup on Windows To: Eli Zaretskii Content-Type: multipart/alternative; boundary="94eb2c1257b290012c0553c17cee" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 27589 Cc: 27589@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --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-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 08 02:47:49 2017 Received: (at 27589-done) by debbugs.gnu.org; 8 Jul 2017 06:47:49 +0000 Received: from localhost ([127.0.0.1]:57242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTjWv-0002Sr-BB for submit@debbugs.gnu.org; Sat, 08 Jul 2017 02:47:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTjWu-0002Se-0d for 27589-done@debbugs.gnu.org; Sat, 08 Jul 2017 02:47:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTjWl-0002kR-Kk for 27589-done@debbugs.gnu.org; Sat, 08 Jul 2017 02:47:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTjWl-0002kL-He; Sat, 08 Jul 2017 02:47:39 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1220 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dTjWk-00046U-Rm; Sat, 08 Jul 2017 02:47:39 -0400 Date: Sat, 08 Jul 2017 09:47:29 +0300 Message-Id: <83shi7l91a.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Bj=C3=B6rn?= Lindqvist In-reply-to: (message from =?utf-8?Q?Bj=C3=B6rn?= Lindqvist on Sat, 8 Jul 2017 00:09:26 +0200) Subject: Re: bug#27589: Wrong documentation for .emacs lookup on Windows References: <83zicin72p.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27589-done Cc: 27589-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Björn Lindqvist > Date: Sat, 8 Jul 2017 00:09:26 +0200 > Cc: 27589@debbugs.gnu.org > > 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. Thanks, I'm therefore closing the bug report. From unknown Fri Sep 05 09:11:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 05 Aug 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator