From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#15539: [PATCH] Setting user-emacs-directory Date: Mon, 2 Sep 2019 23:29:03 -0700 Organization: UCLA Computer Science Department Message-ID: References: <09f0b6af-213f-cc04-336b-00850ba0f3bf@cs.ucla.edu> <8ad91615-e621-7a10-72e2-03277676bd3a@cs.ucla.edu> <499f2cba-39b3-afe1-7039-fb4c3cf73ea0@cs.ucla.edu> <1154ad53-058c-53fa-3f4d-7026a6ec5b2b@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="232639"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Cc: Alexis , =?UTF-8?Q?Fran=C3=A7ois_?= =?UTF-8?Q?F=C3=A9votte?= , Max , Mike Carifio , Evgeny Roubinchtein , Noam Postavsky , John Wiegley , Oleh Krehel , 15539@debbugs.gnu.org, Lars Ingebrigtsen To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 03 08:30:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.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 1i52KW-000yOx-Cu for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Sep 2019 08:30:16 +0200 Original-Received: from localhost ([::1]:42054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i52KU-0005de-Qe for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Sep 2019 02:30:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59237) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i52KK-0005dG-UL for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2019 02:30:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i52KI-0004V5-Oo for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2019 02:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50422) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i52KI-0004Uc-LN for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2019 02:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i52KI-0006Z6-Cq for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2019 02:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Sep 2019 06:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15539 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15539-submit@debbugs.gnu.org id=B15539.156749215525162 (code B ref 15539); Tue, 03 Sep 2019 06:30:02 +0000 Original-Received: (at 15539) by debbugs.gnu.org; 3 Sep 2019 06:29:15 +0000 Original-Received: from localhost ([127.0.0.1]:59243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i52JX-0006Xm-E7 for submit@debbugs.gnu.org; Tue, 03 Sep 2019 02:29:15 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:42150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i52JT-0006XW-FI for 15539@debbugs.gnu.org; Tue, 03 Sep 2019 02:29:12 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C06621600CE; Mon, 2 Sep 2019 23:29:05 -0700 (PDT) Original-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 FsNWmw_VBBKg; Mon, 2 Sep 2019 23:29:04 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C99061600EE; Mon, 2 Sep 2019 23:29:04 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-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 js-gWFAcx9Fr; Mon, 2 Sep 2019 23:29:04 -0700 (PDT) Original-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 6C8421600CE; Mon, 2 Sep 2019 23:29:04 -0700 (PDT) In-Reply-To: Content-Language: en-US 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: 209.51.188.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:166171 Archived-At: Glenn Morris wrote: > XDG_CONFIG_HOME > is not an Emacs-specific variable, so changing it will impact other > things that may be called from within Emacs. True, but it should suffice for many use cases mentioned in Bug#15539. Of the cases mentioned here: https://bugs.gnu.org/15539#66 XDG_HOME should suffice for most of issues mentioned. Not all: for example, overriding XDG_CONFIG_HOME overrides Gtk configuration, font configuration, and other settings covered by the XDG convention, whereas one might want to override just ~/.config/emacs. But it strikes me that this is often just as much of a feature as a drawback, since Gtk etc. configurations influence Emacs so much that they really ought to be saved/restored when one is thinking of saving/restoring Emacs settings. One might have a situation where one wants to vary (or save) files traditionally kept in ~/.emacs.d/, and no other files. But it's also quite plausible that one will want some of those files and not others, just as one might want ~/.config/emacs and ~/.config/fontconfig but not ~/.config/gtk-3.0. And it's unlikely that a single option will have all the fine-grained control that one would need for all these situations. Instead, it's probably better just to suggest to people that they set up $HOME (or perhaps $XDG_CONFIG_HOME) to point to a directory full of configurations that are just they way they like it.