From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Default emacs init file location confusion Date: Wed, 08 Jan 2020 14:45:31 -0500 Message-ID: References: <539DBEA2-E758-4CB0-B886-F908CF0525B6@gnu.org> <83pnfuaqj3.fsf@gnu.org> <83imllc3iq.fsf@gnu.org> <87eew9q4rt.fsf@windriver.com> <83h815c26h.fsf@gnu.org> <83ftgpc0m1.fsf@gnu.org> <83d0btbz4z.fsf@gnu.org> <83a76xbykf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="33853"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: matthewzmd@gmail.com, Robert Pluim , lokedhs@gmail.com, smartlitchi@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 08 20:46:44 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 1ipHHi-0016hR-9E for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 20:46:30 +0100 Original-Received: from localhost ([::1]:48494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipHHg-0000iV-OH for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 14:46:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46800) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipHGy-0000EF-Rk for emacs-devel@gnu.org; Wed, 08 Jan 2020 14:45:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipHGx-0003HA-C9 for emacs-devel@gnu.org; Wed, 08 Jan 2020 14:45:44 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56729) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ipHGv-0003Bt-MR; Wed, 08 Jan 2020 14:45:41 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7A90544DBC6; Wed, 8 Jan 2020 14:45:40 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 6E75B440AA0; Wed, 8 Jan 2020 14:45:34 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1578512734; bh=v7uyHy375OJXt3w2yyxCBalxi+udiVrzFMnPwezRfts=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kNlq4z70qSxPqfttEfHNQj7COI+nyRmCZB0CRbcXs9IEY9iFXKn/Fs3A6EdrT7XHm 1KpzcVVrI6cQ0xWJcywlqileQwxfovY93KUDLN6iwulmYSXqLz22xdV7Tux4FDoPnR /KumMxNqldKto89mBkf7Fs2j3rU1jiOn/VxeeBWnIO0/FoUuBZHvl4cj4V1jGv7/0Q h0IIkRxusOiLe803CkaX3n9h0PQIEp7LvYvEPakAbiS7dIAuACm2baqzEOsqcwhmwD URpJ6BE5cRaJwWb3LR+wY6XCOm92wQbDL+XnOGLoVKusXd5mYxPbgEkkOWlsXFsdG8 EUsgtnkbgK9xw== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5828C12024A; Wed, 8 Jan 2020 14:45:34 -0500 (EST) In-Reply-To: <83a76xbykf.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 08 Jan 2020 20:19:44 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 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:244147 Archived-At: > If the user created it, sure. But that is not guaranteed, and if it > wasn't the user, as we saw, the preference causes confusion and makes > Emacs behave backward-incompatibly. > >> Anyway, I guess I can=CA=BCt convince you. We'll just have to be very cl= ear >> in the NEWS entry. > > Yes. But backward-compatible behavior makes the NEWS entry much less > important. I'm not sure human language is clear enough. So, IIUC, you're suggesting (defvar user-emacs-directory (cond ((file-directory-p "~/.emacs.d") "~/.emacs.d/") ((file-directory-p "~/.config/emacs") "~/.config/emacs") (t "~/.emacs.d/"))) Right? If so, you have my vote. Stefan