-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use built-in query building function #20
Conversation
ghub.el
Outdated
(url-build-query-string | ||
(mapcar (lambda (cell) | ||
(list (car cell) (cdr cell))) | ||
params))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively:
(require 'map)
;;; ...
(defun ghub--url-encode-params (params)
(url-build-query-string (map-apply #'list params)))
If we could just replace I might also be okay with replacing Since we cannot actually remove |
Thanks, I appreciate and understand your reservations. I just have one question - AFAICT, |
I just remembered that this PR also includes the change |
I've added the dependency on |
The function
url-build-query-string
generalisesghub--url-encode-params
, but expects a list of true lists, rather than cons pairs.