I don't know why this special value exists, but perhaps old client code uses it.
The additional `t' in the macro expansion is accidental but not harmful I guess.
Copyright-paperwork-exempt: yes
:group 'use-package)
(defcustom use-package-defaults
- '((:config nil t)
+ '(;; this '(t) has special meaning; see `use-package-handler/:config'
+ (:config '(t) t)
(:init nil t)
(:catch t (lambda (name args)
(not use-package-expand-minimally)))
(use-package-concat
(when use-package-compute-statistics
`((use-package-statistics-gather :config ',name nil)))
- (if (and (null arg) (not use-package-inject-hooks))
+ (if (and (or (null arg) (equal arg '(t))) (not use-package-inject-hooks))
body
(use-package-with-elapsed-timer
(format "Configuring package %s" name-symbol)
(require 'foo nil nil)
(when
(run-hook-with-args-until-failure 'use-package--foo--pre-config-hook)
+ t
(run-hooks 'use-package--foo--post-config-hook))
t))))