From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 18 21:55:19 2019 Received: (at submit) by debbugs.gnu.org; 19 Sep 2019 01:55:19 +0000 Received: from localhost ([127.0.0.1]:55011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAlfD-0007Tv-IW for submit@debbugs.gnu.org; Wed, 18 Sep 2019 21:55:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:36743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAlfC-0007To-9e for submit@debbugs.gnu.org; Wed, 18 Sep 2019 21:55:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47678) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAlfB-0003gh-39 for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 21:55:18 -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,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAlf8-00036L-V4 for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 21:55:16 -0400 Received: from dragonfly.birch.relay.mailchannels.net ([23.83.209.51]:34719) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iAlf8-0002qk-MN for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 21:55:14 -0400 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5FCC3142774 for ; Thu, 19 Sep 2019 01:54:32 +0000 (UTC) Received: from hampton.hostforweb.net (100-96-86-165.trex.outbound.svc.cluster.local [100.96.86.165]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 9A06F142620 for ; Thu, 19 Sep 2019 01:54:31 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from hampton.hostforweb.net ([TEMPUNAVAIL]. [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Thu, 19 Sep 2019 01:54:32 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Whistle-Keen: 5edb55b0027148f1_1568858072008_586955154 X-MC-Loop-Signature: 1568858072008:2792858225 X-MC-Ingress-Time: 1568858072008 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1iAleI-002PBK-8u for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 20:54:23 -0500 Date: Thu, 19 Sep 2019 10:54:20 +0900 Message-ID: From: Katsumi Yamaoka To: bug-gnu-emacs@gnu.org Subject: 27.0.50; can't load .emacs file Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-cygwin) Cancel-Lock: sha1:v4gwkRexFY2WFlBgjPsyF9QhM+U= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.51 X-Spam-Score: -1.4 (-) 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: -2.4 (--) Recipe: =E3=83=BBCreate a new directory named "~/pseudo-home" . =E3=83=BBMake a file named "~/pseudo-home/.emacs" with some contents. =E3=83=BBDo: $ export HOME=3D/home/$USER/pseudo-home $ cd $ emacs& Then Emacs doesn't load the .emacs file, and if installing an elpa package it is installed under the .config/emacs/elpa/ directory. But if there is already the .emacs.d/ directory, Emacs loads the .emacs file and an elpa package is installed in the .emacs.d/ directory. Contrary, Emacs 26.3.50 loads the .emacs file even if there is no .emacs.d/ directory and create the .emacs.d/ directory. Thanks. In GNU Emacs 27.0.50 (build 1, x86_64-pc-cygwin, GTK+ Version 3.22.28) of 2019-09-19 built on localhost Windowing system distributor 'The Cygwin/X Project', version 11.0.12004000 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 19 04:04:29 2019 Received: (at 37456) by debbugs.gnu.org; 19 Sep 2019 08:04:29 +0000 Received: from localhost ([127.0.0.1]:55093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iArQT-0002Jh-AD for submit@debbugs.gnu.org; Thu, 19 Sep 2019 04:04:29 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:50156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iArQR-0002JQ-GU for 37456@debbugs.gnu.org; Thu, 19 Sep 2019 04:04:28 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 673191605EA; Thu, 19 Sep 2019 01:04:21 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id JeK_JFWiJEWS; Thu, 19 Sep 2019 01:04:20 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A2FF41605F5; Thu, 19 Sep 2019 01:04:20 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 43RjkUQIqphn; Thu, 19 Sep 2019 01:04:20 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7AB2E1605EA; Thu, 19 Sep 2019 01:04:20 -0700 (PDT) To: Katsumi Yamaoka From: Paul Eggert Subject: Re: 27.0.50; can't load .emacs file Organization: UCLA Computer Science Department Message-ID: Date: Thu, 19 Sep 2019 01:04:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------49174F1CEE1EC0AB77DC3B98" Content-Language: en-US X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: 37456 Cc: 37456@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.1 (/) This is a multi-part message in MIME format. --------------49174F1CEE1EC0AB77DC3B98 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for the bug report. I installed the attached; please give it a try. --------------49174F1CEE1EC0AB77DC3B98 Content-Type: text/x-patch; name="0001-Also-prefer-.emacs.d-if-.emacs-exists.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Also-prefer-.emacs.d-if-.emacs-exists.patch" >From 6cc1d4bdf70d58e64f95daf1a871212aefa0e47e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 19 Sep 2019 00:59:59 -0700 Subject: [PATCH] Also prefer .emacs.d if .emacs exists Problem reported by Katsumi Yamaoka (Bug#37456). * lisp/startup.el (startup--xdg-or-homedot): Also prefer .emacs.d if a traditional .emacs file exists. --- doc/lispref/os.texi | 3 ++- lisp/startup.el | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index c94e96bde8..ddbc8a8294 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi @@ -475,7 +475,8 @@ Init File @defvar user-emacs-directory This variable holds the name of the Emacs default directory. It defaults to @file{$@{XDG_CONFIG_HOME-'~/.config'@}/emacs/} -if that directory exists and @file{~/.emacs.d/} does not exist, +if that directory exists and @file{~/.emacs.d/} and @file{~/.emacs} do +not exist, otherwise to @file{~/.emacs.d/} on all platforms but MS-DOS@. Here, @file{$@{XDG_CONFIG_HOME-'~/.config'@}} stands for the value of the environment variable @env{XDG_CONFIG_HOME} diff --git a/lisp/startup.el b/lisp/startup.el index ef6234128a..4078f23f3a 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -508,7 +508,14 @@ startup--xdg-or-homedot (if (eq system-type 'ms-dos) "/_emacs.d/" "/.emacs.d/")))) - (if (file-exists-p emacs-d-dir) + (if (or (file-exists-p emacs-d-dir) + (if (eq system-type 'windows-nt) + (directory-files (concat "~" user-name) nil + "\\`[._]emacs\\(\\.elc?\\)?\\'") + (file-exists-p (concat "~" init-file-user + (if (eq system-type 'ms-dos) + "/_emacs" + "/.emacs"))))) emacs-d-dir xdg-dir)))) -- 2.17.1 --------------49174F1CEE1EC0AB77DC3B98-- From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 19 18:00:21 2019 Received: (at 37456-done) by debbugs.gnu.org; 19 Sep 2019 22:00:22 +0000 Received: from localhost ([127.0.0.1]:56537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB4TN-000216-NC for submit@debbugs.gnu.org; Thu, 19 Sep 2019 18:00:21 -0400 Received: from dragonfly.birch.relay.mailchannels.net ([23.83.209.51]:50132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB4TL-00020v-7i for 37456-done@debbugs.gnu.org; Thu, 19 Sep 2019 18:00:19 -0400 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id BFEE82C2A14; Thu, 19 Sep 2019 22:00:17 +0000 (UTC) Received: from hampton.hostforweb.net (100-96-91-239.trex.outbound.svc.cluster.local [100.96.91.239]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 8A67B2C2984; Thu, 19 Sep 2019 22:00:16 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from hampton.hostforweb.net ([TEMPUNAVAIL]. [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Thu, 19 Sep 2019 22:00:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Madly-Bottle: 561c781121649f07_1568930417136_234026971 X-MC-Loop-Signature: 1568930417136:311652969 X-MC-Ingress-Time: 1568930417136 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1iB4T9-007Lek-Ey; Thu, 19 Sep 2019 17:00:08 -0500 Date: Fri, 20 Sep 2019 07:00:05 +0900 Message-ID: From: Katsumi Yamaoka To: Paul Eggert Subject: Re: 27.0.50; can't load .emacs file References: Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-cygwin) Cancel-Lock: sha1:8TgpUhgPOrrQU1UAw1k0OMg6+18= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37456-done Cc: 37456-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: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, 19 Sep 2019 01:04:20 -0700, Paul Eggert wrote: > Thanks for the bug report. I installed the attached; please give it a try. I confirmed that Emacs get working as normal. Thank you for fixing this. Closing. From unknown Sat Jun 21 10:46:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Oct 2019 11:24:09 +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