]> git.eshelyaron.com Git - emacs.git/commitdiff
Make comp-deferred-compilation a simple global and set it on by default
authorAndrea Corallo <akrl@sdf.org>
Thu, 13 Aug 2020 21:47:54 +0000 (23:47 +0200)
committerAndrea Corallo <akrl@sdf.org>
Mon, 17 Aug 2020 16:04:22 +0000 (18:04 +0200)
* src/comp.c (comp_deferred_compilation): Doc update and set it to
true by default.

* lisp/emacs-lisp/comp.el (comp-deferred-compilation): Remove
customize.

lisp/emacs-lisp/comp.el
src/comp.c

index 30cedf298e21cd33e33fd75499068a995187b04b..5805e5c96abf39b758f7a2c35d1d2a8144c1fdaa 100644 (file)
   "Emacs Lisp native compiler."
   :group 'lisp)
 
-(defcustom comp-deferred-compilation nil
-  "If non-nil compile asyncronously all .elc files being loaded.
-Once compilation happened each function definition is updated to
-the native compiled one."
-  :type 'boolean
-  :group 'comp)
-
 (defcustom comp-speed 2
   "Compiler optimization level.  From -1 to 3.
 - -1 functions are kept in bytecode form and no native compilation is performed.
index 9582506f91b7957443ca3ffb165550ce53392a06..b795afae351b2a39832e96c9c1cadce91530fbb2 100644 (file)
@@ -4901,7 +4901,13 @@ syms_of_comp (void)
 #ifdef HAVE_NATIVE_COMP
   /* Compiler control customizes.  */
   DEFVAR_BOOL ("comp-deferred-compilation", comp_deferred_compilation,
-              doc: /* If t compile asyncronously every .elc file loaded.  */);
+              doc: /* If non-nil compile asyncronously all .elc files
+being loaded.
+
+Once compilation happened each function definition is updated to the
+native compiled one.  */);
+  comp_deferred_compilation = true;
+
   DEFSYM (Qcomp_speed, "comp-speed");
   DEFSYM (Qcomp_debug, "comp-debug");