From f1856f391bf6311be3a43ec4ee8a07497de8072b Mon Sep 17 00:00:00 2001 From: Holger Dürer Date: Fri, 15 Feb 2019 20:08:28 +0000 Subject: 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. --- lisp/mastodon-auth.el | 1 + lisp/mastodon-client.el | 2 ++ 2 files changed, 3 insertions(+) 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") -- cgit v1.2.3