aboutsummaryrefslogtreecommitdiff
path: root/modules/custom-buffer-file.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-03 19:10:44 -0500
committerCraig Jennings <c@cjennings.net>2026-05-03 19:10:44 -0500
commit9acaf3899aedb69300a29a0d0c8b468e5f4ad729 (patch)
treee6b4371107685f0a7225876b882145fbc363347d /modules/custom-buffer-file.el
parent475d6305e150c0a8ac61738eabe434c432acd991 (diff)
downloaddotemacs-9acaf3899aedb69300a29a0d0c8b468e5f4ad729.tar.gz
dotemacs-9acaf3899aedb69300a29a0d0c8b468e5f4ad729.zip
fix: expand local ELPA mirror paths with expand-file-name
`(concat user-home-dir ".elpa-mirrors/")` was producing `/home/cjennings.elpa-mirrors/` because `getenv HOME` doesn't return a trailing slash on Linux. The local mirrors were silently dropping out of `package-archives` because `file-accessible-directory-p` couldn't find the bogus path. I replaced the `concat` calls for `elpa-mirror-location` and `localrepo-location` with `expand-file-name`, which handles the slash for us. I also lifted the four per-archive subdirs into their own constants (`elpa-mirror-gnu-location`, `nongnu`, `melpa`, `stable-melpa`) so the archive registration block stops splicing `concat` strings inline. I added `tests/test-early-init-paths.el`. It loads `early-init.el` against a temp HOME with the package side effects stubbed and asserts each constant and each `package-archives` entry resolves to the right path.
Diffstat (limited to 'modules/custom-buffer-file.el')
0 files changed, 0 insertions, 0 deletions