From: John Wiegley Date: Tue, 28 Nov 2017 19:31:35 +0000 (-0800) Subject: Make unrecognized keywords a warning X-Git-Tag: emacs-29.0.90~1306^2~15^2~248 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6f9d4342ca2f8b6dc4dbeb8424525b99719855c3;p=emacs.git 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 --- 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.