From 9ce9c6838e5e6a7a06b3c31b1204b87390cf3b85 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 28 Oct 2020 05:17:02 -0400 Subject: [PATCH] Add emacs version to autoloads file path Prevents stale byte-code across Emacs versions. Relevant to #4172 --- core/core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core.el b/core/core.el index 15bd13280..a5b60aa8a 100644 --- a/core/core.el +++ b/core/core.el @@ -133,7 +133,8 @@ Use this for files that change often, like cache files. Must end with a slash.") Defaults to ~/.config/doom, ~/.doom.d or the value of the DOOMDIR envvar; whichever is found first. Must end in a slash.") -(defconst doom-autoloads-file (concat doom-local-dir "autoloads.el") +(defconst doom-autoloads-file + (concat doom-local-dir "autoloads." emacs-version ".el") "Where `doom-reload-core-autoloads' stores its core autoloads. This file is responsible for informing Emacs where to find all of Doom's