GNU bug report logs - #45197
Saving customizations makes ~/.config/emacs/init (no .el extension)

Previous Next

Package: emacs;

Reported by: tsuucat <tsuucat <at> icloud.com>

Date: Sat, 12 Dec 2020 18:20:01 UTC

Severity: normal

Tags: confirmed, fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: tsuucat <tsuucat <at> icloud.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Saving customizations makes ~/.config/emacs/init (no .el extension)
Date: Sun, 13 Dec 2020 03:10:22 +0900
Subject says all.

How to reproduce:
1. $ cd /tmp
2. $ mkdir -p test-home/.config/emacs
3. $ cd test-home
4. $ HOME=$PWD emacs
5. M-x customize, edit something and Save for Future Sessions.
=> Wrote /tmp/test-home/.config/emacs/init

init (not init.el) is created.
This is because user-init-file is set to “/tmp/test-home/.config/emacs/init”.

Emacs manual doesn’t refer ~/.config/emacs/init so I think this is not intended.

Changing
     (lambda ()
       (expand-file-name
        “init"
        startup-init-directory))
to
     (lambda ()
       (expand-file-name
        “init.el"
        startup-init-directory))
in startup.el
maybe solve this (like early-init.el)?

--
tsuucat





This bug report was last modified 4 years and 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.