From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37116: 26.1; User choice user-emacs-directory is not honored Date: Thu, 22 Aug 2019 19:49:24 +0300 Message-ID: <83tva9b0x7.fsf@gnu.org> References: <99676126.1919199.1566311626414.JavaMail.zimbra@laposte.net> <838srnlqsp.fsf@gnu.org> <1564913112.2639585.1566327047431.JavaMail.zimbra@laposte.net> <1709344906.2816463.1566331892630.JavaMail.zimbra@laposte.net> <834l2bkzxn.fsf@gnu.org> <1152340580.835175.1566375890353.JavaMail.zimbra@laposte.net> <83y2zmjx1z.fsf@gnu.org> <891641150.2753162.1566490697114.JavaMail.zimbra@laposte.net> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="215223"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37116@debbugs.gnu.org To: bruno.vasselle@laposte.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 22 18:50:19 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 1i0qHz-000tmx-3E for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Aug 2019 18:50:19 +0200 Original-Received: from localhost ([::1]:45914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0qHw-0007NN-MX for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Aug 2019 12:50:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51039) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0qHm-0007KB-8d for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2019 12:50:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0qHj-0006YA-Dl for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2019 12:50:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57687) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0qHi-0006Xa-Cq for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2019 12:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i0qHi-0001as-7b for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2019 12:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Aug 2019 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37116 X-GNU-PR-Package: emacs Original-Received: via spool by 37116-submit@debbugs.gnu.org id=B37116.15664925706039 (code B ref 37116); Thu, 22 Aug 2019 16:50:02 +0000 Original-Received: (at 37116) by debbugs.gnu.org; 22 Aug 2019 16:49:30 +0000 Original-Received: from localhost ([127.0.0.1]:38275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0qHA-0001ZJ-Gy for submit@debbugs.gnu.org; Thu, 22 Aug 2019 12:49:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0qH7-0001Yq-CS for 37116@debbugs.gnu.org; Thu, 22 Aug 2019 12:49:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i0qH0-0005pe-VH; Thu, 22 Aug 2019 12:49:19 -0400 Original-Received: from [176.228.60.248] (port=3396 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i0qGy-0001KW-38; Thu, 22 Aug 2019 12:49:17 -0400 In-reply-to: <891641150.2753162.1566490697114.JavaMail.zimbra@laposte.net> (bruno.vasselle@laposte.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:165598 Archived-At: [Please use Reply All so that the bug tracker is CC'ed and records the discussion.] > Date: Thu, 22 Aug 2019 18:18:17 +0200 (CEST) > From: bruno.vasselle@laposte.net > > > Please try the following patch instead of the one I sent earlier: > Patched against master (ef8531d2): details below in 'git diff master' > > Emacs still creates .emacs.d in my home dir. This is expected, and cannot be helped, at least not easily, because various variables are computed during the startup, when your init file has not yet been processed. But with the patch I sent the auto-save-history files should be in your customized user-emacs-directory. Did you check that? If not, please do. > Furthermore, if I feed it with my actual 'init.el' - which defines a user-init-file emacs "custom.el" can play with > under user-emacs-directory - I come up with: > > Cannot open file file: No such file or directory, ~/.emacs.d/custom.el > > in the minibuffer. I cannot look into this without seeing a minimal init.el file that causes this. In particular, I need to understand how come your init.el file uses ~/.emacs.d when your user-emacs-directory is different. > I very much appreciate your help, especially in this case where anybody would ask "who cares?". > > But I mind. I very mind, because I like emacs. But I don't like it omitting respect for its users. My latest patch should do that, please try it. > I secretly hoped you would come to the conclusion that the solution was already given in the bug report > (actually more in wishlist) I've mentioned earlier (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=15539). I don't think the solution proposed there would help in your case because the value of user-emacs-directory is used to compute auto-save-list-file-prefix before the command-line arguments are processed. IOW, by the time we look at the command-line arguments, it's too late for auto-save-list-file-prefix: its value was already computed using the default value of "~/.emacs.d". > We're mutually wasting out times. Don't misunderstand me: you've got all my respect, but I won't follow you > furthermore in the direction you take. Does this mean you are giving up on this issue, and don't want to continue looking for its solution?