From 88b860ef6c687b8b1e3f00eb200f7fc1fb4425dd Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Thu, 13 Aug 2020 23:47:54 +0200 Subject: [PATCH] Make comp-deferred-compilation a simple global and set it on by default * 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 | 7 ------- src/comp.c | 8 +++++++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 30cedf298e2..5805e5c96ab 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -41,13 +41,6 @@ "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. diff --git a/src/comp.c b/src/comp.c index 9582506f91b..b795afae351 100644 --- a/src/comp.c +++ b/src/comp.c @@ -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"); -- 2.39.5