From d2c300322b5899a420c057301406ca0ad0c53f1f Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Wed, 17 Aug 2022 17:32:03 +0200 Subject: docstrings --- lisp/mastodon-http.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el index 8c55534..ec3b5e6 100644 --- a/lisp/mastodon-http.el +++ b/lisp/mastodon-http.el @@ -98,7 +98,8 @@ Message status and JSON error from RESPONSE if unsuccessful." (string-to-unibyte (buffer-string)))) (defmacro mastodon-http--authorized-request (method body &optional unauthenticated-p) - "Make a METHOD request with Mastodon authorization." + "Make a METHOD type request using BODY, with Mastodon authorization. +Unless UNAUTHENTICATED-P is non-nil." `(let ((url-request-method ,method) (url-request-extra-headers (unless ,unauthenticated-p @@ -133,7 +134,7 @@ Authorization header is included by default unless UNAUTHENTICATED-P is non-nil. (defun mastodon-http--get (url) "Make synchronous GET request to URL. -Pass response buffer to CALLBACK function." +Pass response buffer to CALLBACK function." (mastodon-http--authorized-request "GET" (mastodon-http--url-retrieve-synchronously url))) -- cgit v1.2.3