fix: void-function doom-reset-file-handler-alist-h

A regression introduced in 1d8c61698b. Doom disables its
file-name-handler-alist optimization if in a daemon session or if debug
mode is active.

Fix: #6657
Amend: 1d8c61698b
This commit is contained in:
Henrik Lissner 2022-08-10 17:29:01 +02:00
parent 05b344a852
commit 12bf6baa21
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -54,7 +54,7 @@ one wants that.")
;; explicitly tries to load the un-compiled calc-loaddefs.el. If it ;; explicitly tries to load the un-compiled calc-loaddefs.el. If it
;; doesn't exist, it'll go for calc-loaddefs.el.gz instead. ;; 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 (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) (doom-reset-file-handler-alist-h)
(remove-hook 'emacs-startup-hook #'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 (cl-loop for var in doom-autoloads-cached-vars