emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 63df337 2/2: Rename comp-deferred-compilation


From: Andrea Corallo
Subject: master 63df337 2/2: Rename comp-deferred-compilation
Date: Tue, 11 May 2021 12:32:20 -0400 (EDT)

branch: master
commit 63df3372be19dd8686631260714112a4b0c1099f
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>

    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.
---
 lisp/progmodes/elisp-mode.el | 2 +-
 src/comp.c                   | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index a690d4b..a56c709 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 5128755..c044505 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");



reply via email to

[Prev in Thread] Current Thread [Next in Thread]