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:
parent
ce36e68817
commit
b001edf162
2 changed files with 3 additions and 6 deletions
|
|
@ -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*)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue