1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00

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.
This commit is contained in:
Andrea Corallo 2020-08-13 23:47:54 +02:00
parent 3224a44306
commit 88b860ef6c
2 changed files with 7 additions and 8 deletions

View file

@ -41,13 +41,6 @@
"Emacs Lisp native compiler." "Emacs Lisp native compiler."
:group 'lisp) :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 (defcustom comp-speed 2
"Compiler optimization level. From -1 to 3. "Compiler optimization level. From -1 to 3.
- -1 functions are kept in bytecode form and no native compilation is performed. - -1 functions are kept in bytecode form and no native compilation is performed.

View file

@ -4901,7 +4901,13 @@ syms_of_comp (void)
#ifdef HAVE_NATIVE_COMP #ifdef HAVE_NATIVE_COMP
/* Compiler control customizes. */ /* Compiler control customizes. */
DEFVAR_BOOL ("comp-deferred-compilation", comp_deferred_compilation, 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_speed, "comp-speed");
DEFSYM (Qcomp_debug, "comp-debug"); DEFSYM (Qcomp_debug, "comp-debug");