refactor: remove unused core variables
doom-debug-p and doom-interactive-p have always been intentionally redundant, because changing the variables they replaced had other side-effects, which made writing tests for them difficult. Since our new (yet unpublished) tests lean heavily toward integration testing more than unit testing, this becomes an implementation detail. And doom-init-p's only use was refactor out at some point in the past, so it's no longer used. Also done to reduce Doom's footprint, in general.
This commit is contained in:
parent
74cc541597
commit
14b2395424
22 changed files with 55 additions and 76 deletions
|
@ -8,7 +8,6 @@
|
|||
'(async-debug
|
||||
debug-on-error
|
||||
(debugger . doom-debugger)
|
||||
doom-debug-p
|
||||
(doom-print-level . debug)
|
||||
garbage-collection-messages
|
||||
gcmh-verbose
|
||||
|
@ -33,7 +32,7 @@ symbol and CDR is the value to set it to when `doom-debug-mode' is activated.")
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode doom-debug-mode
|
||||
"Toggle `debug-on-error' and `doom-debug-p' for verbose logging."
|
||||
"Toggle `debug-on-error' and `init-file-debug' for verbose logging."
|
||||
:init-value nil
|
||||
:global t
|
||||
(let ((enabled doom-debug-mode))
|
||||
|
@ -246,7 +245,7 @@ ready to be pasted in a bug report on github."
|
|||
. ,(mapcar
|
||||
#'symbol-name
|
||||
(delq
|
||||
nil (list (cond ((not doom-interactive-p) 'batch)
|
||||
nil (list (cond (noninteractive 'batch)
|
||||
((display-graphic-p) 'gui)
|
||||
('tty))
|
||||
(if (daemonp) 'daemon)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue