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

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

[ELPA-diffs] /srv/bzr/emacs/elpa r146: * oauth2.el: Require json.


From: Julien Danjou
Subject: [ELPA-diffs] /srv/bzr/emacs/elpa r146: * oauth2.el: Require json.
Date: Sat, 08 Oct 2011 10:03:26 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 146
committer: Julien Danjou <address@hidden>
branch nick: elpa
timestamp: Sat 2011-10-08 10:03:26 +0200
message:
  * oauth2.el: Require json.
    Fix compilation warning with success variable from url.el.
modified:
  packages/oauth2/oauth2.el
=== modified file 'packages/oauth2/oauth2.el'
--- a/packages/oauth2/oauth2.el 2011-09-26 12:11:11 +0000
+++ b/packages/oauth2/oauth2.el 2011-10-08 08:03:26 +0000
@@ -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 @@
           (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]