emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/oauth2 a51dda4 04/23: * oauth2.el: Require json.


From: Stefan Monnier
Subject: [elpa] externals/oauth2 a51dda4 04/23: * oauth2.el: Require json.
Date: Tue, 1 Dec 2020 16:31:58 -0500 (EST)

branch: externals/oauth2
commit a51dda44dee1bef13cd5fe1b50f028b84ef3c6d5
Author: Julien Danjou <julien@danjou.info>
Commit: Julien Danjou <julien@danjou.info>

    * oauth2.el: Require json.
      Fix compilation warning with success variable from url.el.
---
 oauth2.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/oauth2.el b/oauth2.el
index 7966e62..3b57c05 100644
--- a/oauth2.el
+++ b/oauth2.el
@@ -36,6 +36,7 @@
 ;;; Code:
 
 (require 'plstore)
+(require 'json)
 
 (defun oauth2-request-authorization (auth-url client-id &optional scope state)
   "Request OAuth authorization at AUTH-URL by launching `browse-url'.
@@ -172,6 +173,10 @@ This allows to store the token in an unique way."
           (if (string-match-p "\?" url) "&" "?")
           "access_token=" (oauth2-token-access-token token)))
 
+;; Local variable from `url'
+;; defined here to avoid compile warning
+(defvar success)
+
 ;;;###autoload
 (defun oauth2-url-retrieve-synchronously (token url)
   "Retrieve an URL synchronously using TOKENS to access it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]