From 12bf6baa213686afb80b62c19773fdddad14e88e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 10 Aug 2022 17:29:01 +0200 Subject: [PATCH] fix: void-function doom-reset-file-handler-alist-h A regression introduced in 1d8c61698bd4. Doom disables its file-name-handler-alist optimization if in a daemon session or if debug mode is active. Fix: #6657 Amend: 1d8c61698bd4 --- lisp/cli/autoloads.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/cli/autoloads.el b/lisp/cli/autoloads.el index b0567554b..2974c7069 100644 --- a/lisp/cli/autoloads.el +++ b/lisp/cli/autoloads.el @@ -54,7 +54,7 @@ one wants that.") ;; explicitly tries to load the un-compiled calc-loaddefs.el. If it ;; doesn't exist, it'll go for calc-loaddefs.el.gz instead. (unless (locate-file "calc-loaddefs.el" (get 'load-path 'initial-value) nil) - `((unless noninteractive + `((when (fboundp 'doom-reset-file-handler-alist-h) (doom-reset-file-handler-alist-h) (remove-hook 'emacs-startup-hook #'doom-reset-file-handler-alist-h)))) (cl-loop for var in doom-autoloads-cached-vars