From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: HaiJun Zhang Newsgroups: gmane.emacs.devel Subject: Re: Default emacs init file location confusion Date: Thu, 9 Jan 2020 09:26:42 +0800 Message-ID: References: <83y2ukc55g.fsf@gnu.org> <85C8025D-ACFD-4DEB-B030-E46B3109323E@gnu.org> <83lfqjckjn.fsf@gnu.org> <83blrfci4q.fsf@gnu.org> <837e23chdm.fsf@gnu.org> <834kx7cgmh.fsf@gnu.org> <87tv56bjop.fsf@gmail.com> <539DBEA2-E758-4CB0-B886-F908CF0525B6@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="5e168157_2df6d648_b145" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="180092"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Robert Pluim , =?utf-8?Q?Elias_M=C3=A5rtenson?= , EMACS development team , "Mingde \(Matthew\) Zeng" , Eli Zaretskii , smartlitchi@gmail.com To: Stefan Monnier , chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 09 02:28:05 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ipMc7-000cT4-UJ for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Jan 2020 02:27:56 +0100 Original-Received: from localhost ([::1]:52884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipMc6-0003f7-Oq for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 20:27:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43801) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipMbG-0003DV-HT for emacs-devel@gnu.org; Wed, 08 Jan 2020 20:27:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipMbD-0000uW-4D for emacs-devel@gnu.org; Wed, 08 Jan 2020 20:27:02 -0500 Original-Received: from mail-oln040092253106.outbound.protection.outlook.com ([40.92.253.106]:6047 helo=APC01-SG2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ipMbB-0000pO-Vt; Wed, 08 Jan 2020 20:26:59 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U+ecZOPEaCNueDaTeHdi0kt61jf/RF55e8zi2soKV5uzbo+8ll2BLo3lhnUky1husM4pExlzd65azbzm6J//vwVYNwrRzsydVg49gj6bZxaQj8BMkoShh2/rMFqFnJInU31pi/GNua7aCbzO0GkV+KQb5L6dVFIDoAOfakdawsNN4LXJC/aDjwPlV5Ylv1cSyvXWXFzLWQHD+XpuxuzPKwjG31TM34ckpxd4Vk5Z6qCNDll/LqTSU7Clwng5JgOar9VzpjjKzNMQVLWJCUjX3nrVYIjmtymTAmwIitozPwTLq7ZC6NxHxXrXb6rMpQ3xEuYOHrmOtVHapoMcYCGOdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KsM6SkB1OJpi5GZ1TP0niEJ17KvA/NzU6O0xCDGXjfk=; b=I5nd8lmKW7IWKAwggj+bFjp7q+FQ2sJFJQww+5p7boWvftpOSK2XAkYoExecLehl0JFB9jZDOZpScawn88rP8uQ9WyI1JIyEQwYK1Z5aphLa3M2jn8JdORn683ET3H206qOUvNsfVb61oB3Wj9GxT28uLnM/Yl30VuftNXTV17hSZAbG6IzX4YxEWS/Y9Cu3IodckGENURFGti/7uRGstFyXWBxLkJxMVaMZ3ihxXeN2jGERmsERe2aWg26vNFkzjxyV5q3X6R9FSr7bq2qy0aBytQl4Owm0Wfp+rQNrili+CzPiRwRdi3Ewekrs4GMPtLbuRPhfoJYWfvOVDw5HBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KsM6SkB1OJpi5GZ1TP0niEJ17KvA/NzU6O0xCDGXjfk=; b=MWpouFqVgObk8HfaITqBzzz+qDsNUUNV2dLtblVecZr+5hQbwQVySANijpWHdE4DRwi7YWkqCbsxblY1ZZr3e7GiJFl8BmXxY/GmonJTx7vGT9ni1UntDup9gke1jh7GiOF/j/0CCtbm+zuaLj9jOQZDvco4vVyrzEY1rl1R9gV0MCtitAciqscxxTs2iSD6S1oXwc18vV3/3v1L4DgJpRn08W28scDmYiHKLNc762G3FY6+Y82i0Jwk9S9Q+1ZyQCT1u5zKMQocbx/Ka+wnLSKzZCowCZiTsMYKAG3wZaB5rZ2wo1Xy1OR6UlLs6bw3s/L6lfzFuPJo2WI38qcIjQ== Original-Received: from SG2APC01FT115.eop-APC01.prod.protection.outlook.com (10.152.250.52) by SG2APC01HT003.eop-APC01.prod.protection.outlook.com (10.152.250.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Thu, 9 Jan 2020 01:26:52 +0000 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.55) by SG2APC01FT115.mail.protection.outlook.com (10.152.250.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Thu, 9 Jan 2020 01:26:52 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:6E519484F65A9DFDF60C8B6BEB28EAD0C81EBDFEC36BC2284AA363E45CDCC4D6; UpperCasedChecksum:BF6A5B9B6EE0CD133EA854A04C5069949DA96F44BF7E49C0D907D85878DE2F21; SizeAsReceived:9959; Count:48 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.008; Thu, 9 Jan 2020 01:26:51 +0000 In-Reply-To: X-Readdle-Message-ID: 934eeffe-8a28-45b1-9f54-349d2780fadc@Spark X-ClientProxiedBy: HK2PR0401CA0008.apcprd04.prod.outlook.com (2603:1096:202:2::18) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <934eeffe-8a28-45b1-9f54-349d2780fadc@Spark> Original-Received: from [192.168.1.103] (1.196.184.176) by HK2PR0401CA0008.apcprd04.prod.outlook.com (2603:1096:202:2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.10 via Frontend Transport; Thu, 9 Jan 2020 01:26:50 +0000 X-Readdle-Message-ID: 934eeffe-8a28-45b1-9f54-349d2780fadc@Spark X-Microsoft-Original-Message-ID: <934eeffe-8a28-45b1-9f54-349d2780fadc@Spark> X-TMN: [BRvWP5NePNMd92ryY7teCjqQDFMJ/ulO] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 5502a317-bd0d-42d4-68ab-08d794a3011b X-MS-TrafficTypeDiagnostic: SG2APC01HT003: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: e0gCjbd8yEbkK5qThARkq6u4WEosUDaorPoL/BzA99Gqs1NSSnk/TmiaPOhaMjXX3Bcmx1FJzHpJId0u2MIszXUtlWo1NLI+kNMqOqsuYVpapBwI2SNmQ7tO5Ydd+Nt3qlJVj/4TXtereWW9OnA6Mw7kjYNoaQ2Chg8wwGidj0A3U9lXALrz0EylX0Hm7ZyE X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5502a317-bd0d-42d4-68ab-08d794a3011b X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2020 01:26:51.8556 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT003 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.253.106 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244157 Archived-At: --5e168157_2df6d648_b145 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline My user-init-file is set to =E2=80=9C=7E/.emacs=E2=80=9D for long time, w= hich will now work for your logic. There is a long history for =E2=80=9C=7E/.emacs.d=E2=80=9D. Old users may= be fooled when someone else creates an empty =E2=80=9C=7E/.config/emacs=E2= =80=9D for him or some packages create it. I like the=C2=A0backward-compatible proposal. This will not disturb old u= sers. =E5=9C=A8 2020=E5=B9=B41=E6=9C=889=E6=97=A5 +0800 AM7:27=EF=BC=8Cchad =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > > > On Wed, Jan 8, 2020 at 5:52 AM Stefan Monnier wrote: > > > It's just swapping the current roles of =7E/.emacs.d and > > > =7E/.config/emacs, indeed. > > > Still, a warning when both are present would be welcome. > > > > I'll suggest a friendly amendment: A warning when both =7E/.config/em= acs/init.el and =7E/.emacs.d/init.el are present would be welcome. > > > > =7EChad --5e168157_2df6d648_b145 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
My user-init-file is set to =E2=80=9C~/.emacs=E2=80=9D fo= r long time, which will now work for your logic.

There is a long history for =E2=80=9C~/.emacs.d=E2=80=9D.= Old users may be fooled when someone else creates an empty =E2=80=9C~/.con= fig/emacs=E2=80=9D for him or some packages create it.

I like the backward-compatibl= e proposal. This will not disturb old users.

=E5=9C=A8 2020=E5=B9=B41=E6=9C=889=E6=97= =A5 +0800 AM7:27=EF=BC=8Cchad <yandros@gmail.com>=EF=BC=8C=E5=86= =99=E9=81=93=EF=BC=9A


On Wed, Jan 8, 2020 at 5:52 AM Stefan= Monnier <monnier@iro.umontr= eal.ca> wrote:
It's just swapping the c= urrent roles of ~/.emacs.d and
~/.config/emacs, indeed.
Still, a warning when both are present would be welcome.

I'll suggest a friendly amendment: A warning when both ~/.config/emacs= /init.el and ~/.emacs.d/init.el are present would be welcome. 

~Chad
--5e168157_2df6d648_b145--