1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 22:40:51 -08:00

Make unrecognized keywords a warning

This could actually be used to store your own metadata in use-package
declarations, to be (read) later by simply parsing init file contents.

Fixes https://github.com/jwiegley/use-package/issues/483
This commit is contained in:
John Wiegley 2017-11-28 11:31:35 -08:00
parent 9b523d7c4e
commit 6f9d4342ca

View file

@ -534,7 +534,10 @@ This is in contrast to merely setting it to 0."
(if (memq keyword use-package-keywords)
(cons keyword
(cons arg (use-package-normalize-plist name tail)))
(use-package-error (format "Unrecognized keyword: %s" keyword))))))
(ignore
(display-warning 'use-package
(format "Unrecognized keyword: %s" keyword)
:warning))))))
(defun use-package-process-keywords (name plist &optional state)
"Process the next keyword in the free-form property list PLIST.