From: Eli Zaretskii <eliz@gnu.org>
To: bruno.vasselle@laposte.net
Cc: 37116@debbugs.gnu.org
Subject: bug#37116: 26.1; User choice user-emacs-directory is not honored
Date: Wed, 21 Aug 2019 19:35:52 +0300 [thread overview]
Message-ID: <83y2zmjx1z.fsf@gnu.org> (raw)
In-Reply-To: <1152340580.835175.1566375890353.JavaMail.zimbra@laposte.net> (bruno.vasselle@laposte.net)
> 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
next prev parent reply other threads:[~2019-08-21 16:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1109001605.1628158.1566304636039.JavaMail.zimbra@laposte.net>
2019-08-20 14:33 ` bug#37116: 26.1; User choice user-emacs-directory is not honored bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-08-20 16:55 ` Eli Zaretskii
2019-08-20 18:50 ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-08-20 20:11 ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-08-21 2:36 ` Eli Zaretskii
2019-08-21 8:24 ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-08-21 16:35 ` Eli Zaretskii [this message]
[not found] ` <891641150.2753162.1566490697114.JavaMail.zimbra@laposte.net>
2019-08-22 16:49 ` Eli Zaretskii
2019-08-22 17:27 ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-08-22 17:47 ` Eli Zaretskii
2019-08-24 15:49 ` Eli Zaretskii
2019-08-24 16:33 ` Stefan Kangas
2019-08-26 20:07 ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83y2zmjx1z.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=37116@debbugs.gnu.org \
--cc=bruno.vasselle@laposte.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).