]> git.eshelyaron.com Git - emacs.git/commitdiff
Rename comp-deferred-compilation
authorAndrea Corallo <akrl@sdf.org>
Tue, 11 May 2021 16:10:19 +0000 (18:10 +0200)
committerAndrea Corallo <akrl@sdf.org>
Tue, 11 May 2021 16:31:45 +0000 (18:31 +0200)
* 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.

lisp/progmodes/elisp-mode.el
src/comp.c

index a690d4bceb3a457dd341ff85fc2e3b31c9c0608c..a56c7093e79fd848c80f08a00a22de5d34618561 100644 (file)
@@ -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)
index 5128755bf18b29d4db6cfdee6aecb736593dea70..c0445050b71dc036a31432657481ce059b1feabb 100644 (file)
@@ -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");