branch: elpa/fedi
commit cf158063d50c111ca537e7fcbb6b36cd8b5c34e1
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>

    add comment re conditional code expansion
---
 fedi.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fedi.el b/fedi.el
index 4baa344b323..3b09f170a4a 100644
--- a/fedi.el
+++ b/fedi.el
@@ -110,6 +110,10 @@ that handles auth by providing info using HEADERS or 
AUTH-PARAM."
                               (with-current-buffer response
                                 (fedi-http--process-json))))))))
 
+;; This trick doesn't actually do what we want, as our macro is called
+;; to define functions, so must be called with all possible arguments, rather
+;; than only those of a given function call.
+;; Still, it solves the problem of the server rejecting nil param values.
 (defun fedi-arg-when-expr (arg)
   "Return a cons of a string and a symbol type of ARG.
 Also replace _ with - (for Lemmy's type_ param)."

Reply via email to