From 1ff10a9b30c504bdcc00d7abfa20a9b8f32aefe7e98b4f1d2989240fa0b6adf8 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 9 Oct 2023 09:34:58 +0000 Subject: [PATCH] native-compile-prune-cache is a lisp function only OBS-URL: https://build.opensuse.org/package/show/editors/emacs?expand=0&rev=366 --- dot.gnu-emacs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dot.gnu-emacs b/dot.gnu-emacs index a208670..0f281bc 100644 --- a/dot.gnu-emacs +++ b/dot.gnu-emacs @@ -546,7 +546,10 @@ ;; ;; New native compilation support ;; avoid useless warning, clear old eln files -(setq native-comp-async-report-warnings-errors 'silent) -(setq native-compile-prune-cache t) +(if (featurep 'native-compile) + (progn + (require 'comp) + (setq native-comp-async-report-warnings-errors 'silent) + (native-compile-prune-cache))) ;;;;;;;;;; ;; the end