1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-16 02:50:26 -08:00

Add special value back again, in case needed for backwards compat

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
This commit is contained in:
John Lee 2020-05-09 23:35:15 +01:00
parent f30d5761af
commit 0ec4660f74
2 changed files with 4 additions and 2 deletions

View file

@ -156,7 +156,8 @@ See also `use-package-defaults', which uses this value."
: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)))
@ -1467,7 +1468,7 @@ no keyword implies `:all'."
(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)

View file

@ -1501,6 +1501,7 @@
(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))))