branch: externals/oauth2
commit 7e844034826ceb9f0fa44d93bcb781a68355635e
Author: Xiyue Deng <manp...@gmail.com>
Commit: Sean Whitton <spwhit...@spwhitton.name>

    Small fix for backtrace-frame
    
    * packages/oauth2/oauth2.el (oauth2-make-access-request): Use
    '(backtrace-frame 2)' for the intended function name.
---
 oauth2.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oauth2.el b/oauth2.el
index 87e0c39c5c..70c59e7513 100644
--- a/oauth2.el
+++ b/oauth2.el
@@ -90,7 +90,7 @@ It returns the code provided by the service."
 
 (defun oauth2-make-access-request (url data)
   "Make an access request to URL using DATA in POST."
-  (let ((func-name (nth 1 (backtrace-frame 3))))
+  (let ((func-name (nth 1 (backtrace-frame 2))))
     (oauth2--do-debug "%s: url: %s" func-name url)
     (oauth2--do-debug "%s: data: %s" func-name data)
     (let ((url-request-method "POST")

Reply via email to