Skip to content

Commit

Permalink
Remove references to getf and change to cl-getf
Browse files Browse the repository at this point in the history
  • Loading branch information
ahungry committed May 5, 2020
1 parent 5123c29 commit a667498
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jiralib.el
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ when invoking it through `jiralib-call', the call should be:
CALLBACK should be the post processing function to run with the
completed data from the request result, which can be accessed with:
(getf data :data)
(cl-getf data :data)
as such, the CALLBACK should follow this type of form:
(cl-function
(lambda (&rest data &allow-other-keys)
(print (getf data :data))))
(print (cl-getf data :data))))
If CALLBACK is set to nil then the request will occur with sync.
This produces a noticeable slowdown and is not recommended by
Expand Down Expand Up @@ -1167,8 +1167,8 @@ PARAMS - extra parameters (as keyword arguments), the supported parameters are:
(setq jiralib-complete-callback nil)
(let ((not-last t)
(start-at 0)
(limit (getf params :limit))
(query-params (getf params :query-params))
(limit (cl-getf params :limit))
(query-params (cl-getf params :query-params))
;; maximum page size, 50 is server side maximum
(max-results jiralib-agile-page-size)
(values ()))
Expand All @@ -1195,8 +1195,8 @@ PARAMS - extra parameters (as keyword arguments), the supported parameters are:
limit - limit total number of retrieved entries."
(lexical-let
((start-at 0)
(limit (getf params :limit))
(query-params (getf params :query-params))
(limit (cl-getf params :limit))
(query-params (cl-getf params :query-params))
;; maximum page size, 50 is server side maximum
(max-results jiralib-agile-page-size)
(values-list ())
Expand Down

0 comments on commit a667498

Please sign in to comment.