1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

Add missing autoload cookie, and make lack of a normalizer an error

Fixes https://github.com/jwiegley/use-package/issues/566
This commit is contained in:
John Wiegley 2017-12-06 10:20:51 -08:00
parent ce36e68817
commit b001edf162
2 changed files with 3 additions and 6 deletions

View file

@ -66,6 +66,7 @@ deferred until the prefix key sequence is pressed."
(format "package.el %s failed to define keymap %s"
package keymap-symbol)))))
;;;###autoload
(defun use-package-normalize-binder (name keyword args)
(let ((arg args)
args*)

View file

@ -476,12 +476,8 @@ extending any keys already present."
(tail (cdr xs))
(normalizer (intern (concat "use-package-normalize/"
(symbol-name keyword))))
(arg (cond ((functionp normalizer)
(funcall normalizer name keyword args))
((= (length args) 1)
(car args))
(t
args))))
(arg (and (functionp normalizer)
(funcall normalizer name keyword args))))
(if (memq keyword use-package-keywords)
(progn
(setq plist (use-package-normalize-plist