From 6f9d4342ca2f8b6dc4dbeb8424525b99719855c3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 28 Nov 2017 11:31:35 -0800 Subject: [PATCH] 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 --- lisp/use-package/use-package.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 9c095d73849..83b9ae4f4aa 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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. -- 2.39.2