In emacs 28+ the 'comp-never-optimize-function was renamed to 'native-comp-never-optimize-functions.
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=31ca1c3e81b26357692c4c2428744f7f2f153596
This commit is contained in:
committed by
László Vaskó
parent
201e023c67
commit
7e434d3115
@@ -11,7 +11,12 @@
|
|||||||
(with-eval-after-load "comp"
|
(with-eval-after-load "comp"
|
||||||
;; The advice for 'kill-emacs would result in eln files being written before
|
;; The advice for 'kill-emacs would result in eln files being written before
|
||||||
;; doom would set up proper load paths
|
;; doom would set up proper load paths
|
||||||
(add-to-list 'comp-never-optimize-functions 'kill-emacs))
|
(when (boundp 'comp-never-optimize-functions)
|
||||||
|
;; TODO Remove this when emacs 28 become stable.
|
||||||
|
(add-to-list 'comp-never-optimize-functions 'kill-emacs))
|
||||||
|
(when (boundp 'native-comp-never-optimize-functions)
|
||||||
|
(add-to-list 'native-comp-never-optimize-functions 'kill-emacs))
|
||||||
|
)
|
||||||
|
|
||||||
(defun nix-straight-inhibit-kill-emacs (arg)
|
(defun nix-straight-inhibit-kill-emacs (arg)
|
||||||
(message "[nix-doom-emacs] Inhibiting (kill-emacs)"))
|
(message "[nix-doom-emacs] Inhibiting (kill-emacs)"))
|
||||||
|
Reference in New Issue
Block a user