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: Wed, 21 Aug 2019 19:35:52 +0300 Message-ID: <83y2zmjx1z.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> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="173690"; 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 Wed Aug 21 18:43:15 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 1i0Thb-000j0o-DZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Aug 2019 18:43:15 +0200 Original-Received: from localhost ([::1]:50482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0Tha-0000HY-7h for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Aug 2019 12:43:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59813) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0Taf-0000IX-6t for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2019 12:36:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0Tac-0006Zi-Tk for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2019 12:36:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0Tac-0006ZV-Me for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2019 12:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i0Tac-0001fz-I3 for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2019 12:36: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: Wed, 21 Aug 2019 16:36: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.15664053556430 (code B ref 37116); Wed, 21 Aug 2019 16:36:02 +0000 Original-Received: (at 37116) by debbugs.gnu.org; 21 Aug 2019 16:35:55 +0000 Original-Received: from localhost ([127.0.0.1]:36406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0TaU-0001fe-N0 for submit@debbugs.gnu.org; Wed, 21 Aug 2019 12:35:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0TaS-0001fP-8e for 37116@debbugs.gnu.org; Wed, 21 Aug 2019 12:35:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i0TaM-0006NZ-Vj; Wed, 21 Aug 2019 12:35:47 -0400 Original-Received: from [176.228.60.248] (port=1087 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i0TaM-0005xp-DV; Wed, 21 Aug 2019 12:35:46 -0400 In-reply-to: <1152340580.835175.1566375890353.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:165507 Archived-At: > Date: Wed, 21 Aug 2019 10:24:50 +0200 (CEST) > From: bruno.vasselle@laposte.net > Cc: 37116@debbugs.gnu.org > > > > Typo: you've certainly corrected by yourself, but it is actually auto-save-list that is created under > .emacs.d, > > > not auto-save-list-file-prefix > > > > It's not a typo: auto-save-list-file-prefix is a defcustom from whose > > I mean: the directory that is created under ".emacs.d/' is not named "auto-save-list-file-prefix", but > "auto-save-list" Yes, auto-save-list-file-prefix is the variable whose value includes the string "auto-save-list". The problem is that the value of auto-save-list-file-prefix is computed before user-emacs-directory is updated by your init file. Please try the following patch instead of the one I sent earlier: diff --git a/lisp/startup.el b/lisp/startup.el index 5644285..ff90646 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -406,6 +406,7 @@ auto-save-list-file-prefix Directories in the prefix will be created if necessary. Set this to nil if you want to prevent `auto-save-list-file-name' from being initialized." + :initialize 'custom-initialize-delay :type '(choice (const :tag "Don't record a session's auto save list" nil) string) :group 'auto-save) @@ -1282,8 +1283,7 @@ command-line ;; depends on the runtime context, in case some of them depend on ;; the window-system features. Example: blink-cursor-mode. (let (current-load-list) ; c-r-s may call defvar, and hence LOADHIST_ATTACH - (mapc 'custom-reevaluate-setting custom-delayed-init-variables) - (setq custom-delayed-init-variables nil)) + (mapc 'custom-reevaluate-setting custom-delayed-init-variables)) (normal-erase-is-backspace-setup-frame) @@ -1377,6 +1377,14 @@ command-line (eq face-ignored-fonts old-face-ignored-fonts)) (clear-face-cache))) + ;; Re-evaluate again the predefined variables whose initial value + ;; depends on the runtime context, in case the user init file + ;; modified user-emacs-directory. Examples: abbrev-file-name, + ;; auto-save-list-file-prefix. + (let (current-load-list) ; c-r-s may call defvar, and hence LOADHIST_ATTACH + (mapc 'custom-reevaluate-setting custom-delayed-init-variables) + (setq custom-delayed-init-variables nil)) + (setq after-init-time (current-time)) ;; Display any accumulated warnings after all functions in ;; `after-init-hook' like `desktop-read' have finalized possible