Skip to content

Commit

Permalink
Start using partial
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Feb 3, 2025
1 parent 0e1579b commit b17be58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .dir-locals.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
((emacs-lisp-mode
(indent-tabs-mode . nil))
(indent-tabs-mode . nil)
(read-symbol-shorthands
("partial" . "llama--left-apply-partially")
("rpartial" . "llama--right-apply-partially")))
(git-commit-mode
(git-commit-major-mode . git-commit-elisp-text-mode))
(makefile-gmake-mode
Expand Down
6 changes: 2 additions & 4 deletions lisp/forge-repo.el
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,12 @@ REPO, return it, else set the slot to nil and return nil."
;;;; List

(defun forge--ls-repos ()
(mapcar (let ((db (forge-db)))
(##closql--remake-instance 'forge-repository db %))
(mapcar (partial #'closql--remake-instance 'forge-repository (forge-db))
(forge-sql [:select * :from repository
:order-by [(asc owner) (asc name)]])))

(defun forge--ls-owned-repos ()
(mapcar (let ((db (forge-db)))
(##closql--remake-instance 'forge-repository db %))
(mapcar (partial #'closql--remake-instance 'forge-repository (forge-db))
(forge-sql [:select * :from repository
:where (and (in owner $v1)
(not (in name $v2)))
Expand Down
2 changes: 1 addition & 1 deletion lisp/forge.el
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
;; (emacsql "4.1.0")
;; (ghub "4.2.0")
;; (let-alist "1.0.6")
;; (llama "0.5.0")
;; (llama "0.6.0")
;; (magit "4.2.0")
;; (markdown-mode "2.6")
;; (seq "2.24")
Expand Down

0 comments on commit b17be58

Please sign in to comment.