diff options
author | Holger Dürer <me@hdurer.net> | 2019-02-15 20:08:28 +0000 |
---|---|---|
committer | Johnson Denen <johnson.denen@gmail.com> | 2019-03-04 22:44:28 -0500 |
commit | f1856f391bf6311be3a43ec4ee8a07497de8072b (patch) | |
tree | a62e66db59a6d595ef7382c0195b39c4e5c3955b /lisp | |
parent | 48356b2b26476697f0ef540b8a4087542365f1d0 (diff) |
Explitly require json.el in files where we dynamically bind its vars.
As pointed out in issue #211 the compiler actually warned the user about `json-array-type` etc. being unused lexical vars.
Let's hope that this fixes the errors reported with reading json.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-auth.el | 1 | ||||
-rw-r--r-- | lisp/mastodon-client.el | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lisp/mastodon-auth.el b/lisp/mastodon-auth.el index 71469cf..b35603e 100644 --- a/lisp/mastodon-auth.el +++ b/lisp/mastodon-auth.el @@ -31,6 +31,7 @@ (require 'plstore) (require 'auth-source) +(require 'json) (autoload 'mastodon-client "mastodon-client") (autoload 'mastodon-http--api "mastodon-http") diff --git a/lisp/mastodon-client.el b/lisp/mastodon-client.el index 52eaae9..0411937 100644 --- a/lisp/mastodon-client.el +++ b/lisp/mastodon-client.el @@ -30,6 +30,8 @@ ;;; Code: (require 'plstore) +(require 'json) + (defvar mastodon-instance-url) (autoload 'mastodon-http--api "mastodon-http") (autoload 'mastodon-http--post "mastodon-http") |