From: Andrea Corallo Date: Tue, 11 May 2021 16:10:19 +0000 (+0200) Subject: Rename comp-deferred-compilation X-Git-Tag: emacs-28.0.90~2514 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=63df3372be19dd8686631260714112a4b0c1099f;p=emacs.git Rename comp-deferred-compilation * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load): Rename comp-deferred-compilation -> native-comp-deferred-compilation. * src/comp.c (maybe_defer_native_compilation, syms_of_comp): Likewise. --- diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index a690d4bceb3..a56c7093e79 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -183,7 +183,7 @@ All commands in `lisp-mode-shared-map' are inherited by this map.") Load the compiled code when finished. Use `emacs-lisp-byte-compile-and-load' in combination with -`comp-deferred-compilation' set to `t' to achieve asynchronous +`native-comp-deferred-compilation' set to `t' to achieve asynchronous native compilation." (interactive nil emacs-lisp-mode) (emacs-lisp--before-compile-buffer) diff --git a/src/comp.c b/src/comp.c index 5128755bf18..c0445050b71 100644 --- a/src/comp.c +++ b/src/comp.c @@ -4697,7 +4697,7 @@ maybe_defer_native_compilation (Lisp_Object function_name, if (!load_gccjit_if_necessary (false)) return; - if (!comp_deferred_compilation + if (!native_comp_deferred_compilation || noninteractive || !NILP (Vpurify_flag) || !COMPILEDP (definition) @@ -5200,12 +5200,13 @@ syms_of_comp (void) { #ifdef HAVE_NATIVE_COMP /* Compiler control customizes. */ - DEFVAR_BOOL ("comp-deferred-compilation", comp_deferred_compilation, + DEFVAR_BOOL ("native-comp-deferred-compilation", + native_comp_deferred_compilation, doc: /* If non-nil compile loaded .elc files asynchronously. After compilation, each function definition is updated to the native compiled one. */); - comp_deferred_compilation = true; + native_comp_deferred_compilation = true; DEFSYM (Qnative_comp_speed, "native-comp-speed"); DEFSYM (Qnative_comp_debug, "native-comp-debug");