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:
parent
9b523d7c4e
commit
6f9d4342ca
1 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue