aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2021-02-26 18:03:19 +0100
committerStefan Kangas2021-02-26 18:11:29 +0100
commitcedc55041ea5179dcb389845d2d0e3562060cab9 (patch)
tree81bc7f8129ce68298f567d2cf84ad579cf992c5f
parent720bd747a80a5fe2f774997ae85d6607b5627e56 (diff)
downloademacs-cedc55041ea5179dcb389845d2d0e3562060cab9.tar.gz
emacs-cedc55041ea5179dcb389845d2d0e3562060cab9.zip
Make some defcustom types stricter in comp.el
* lisp/emacs-lisp/comp.el (comp-speed, comp-debug, comp-verbose) (comp-async-jobs-number, comp-async-env-modifier-form): Use stricter types.
-rw-r--r--lisp/emacs-lisp/comp.el15
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 7c702ca4971..09ae3834922 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -52,8 +52,8 @@
52- 2 max optimization level fully adherent to the language semantic. 52- 2 max optimization level fully adherent to the language semantic.
53- 3 max optimization level, to be used only when necessary. 53- 3 max optimization level, to be used only when necessary.
54 Warning: the compiler is free to perform dangerous optimizations." 54 Warning: the compiler is free to perform dangerous optimizations."
55 :type 'number 55 :type 'integer
56 :safe #'numberp 56 :safe #'integerp
57 :version "28.1") 57 :version "28.1")
58 58
59(defcustom comp-debug 0 59(defcustom comp-debug 0
@@ -64,8 +64,8 @@ This intended for debugging the compiler itself.
64- 1 emit debug symbols and dump pseudo C code. 64- 1 emit debug symbols and dump pseudo C code.
65- 2 dump gcc passes and libgccjit log file. 65- 2 dump gcc passes and libgccjit log file.
66- 3 dump libgccjit reproducers." 66- 3 dump libgccjit reproducers."
67 :type 'number 67 :type 'integer
68 :safe #'numberp 68 :safe #'natnump
69 :version "28.1") 69 :version "28.1")
70 70
71(defcustom comp-verbose 0 71(defcustom comp-verbose 0
@@ -75,7 +75,8 @@ This intended for debugging the compiler itself.
75- 1 final limple is logged. 75- 1 final limple is logged.
76- 2 LAP and final limple and some pass info are logged. 76- 2 LAP and final limple and some pass info are logged.
77- 3 max verbosity." 77- 3 max verbosity."
78 :type 'number 78 :type 'integer
79 :risky t
79 :version "28.1") 80 :version "28.1")
80 81
81(defcustom comp-always-compile nil 82(defcustom comp-always-compile nil
@@ -109,7 +110,8 @@ Skip if any is matching."
109(defcustom comp-async-jobs-number 0 110(defcustom comp-async-jobs-number 0
110 "Default number of processes used for async compilation. 111 "Default number of processes used for async compilation.
111When zero use half of the CPUs or at least one." 112When zero use half of the CPUs or at least one."
112 :type 'number 113 :type 'integer
114 :risky t
113 :version "28.1") 115 :version "28.1")
114 116
115;; FIXME: This an abnormal hook, and should be renamed to something 117;; FIXME: This an abnormal hook, and should be renamed to something
@@ -130,6 +132,7 @@ compilation input."
130 "Form evaluated before compilation by each asynchronous compilation worker. 132 "Form evaluated before compilation by each asynchronous compilation worker.
131Usable to modify the compiler environment." 133Usable to modify the compiler environment."
132 :type 'list 134 :type 'list
135 :risky t
133 :version "28.1") 136 :version "28.1")
134 137
135(defcustom comp-async-report-warnings-errors t 138(defcustom comp-async-report-warnings-errors t