Skip to content

Commit

Permalink
fix: tempel backend error.
Browse files Browse the repository at this point in the history
1. delete undefined variable `candidates`
2. replace undefined function `tempel--print-element` with `tempel--print-template`
  • Loading branch information
ginqi7 committed Oct 17, 2023
1 parent 61b2bcb commit cc5bb6f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions acm/acm-backend-tempel.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
:display-label snippet
:annotation "Tempel"
:backend "tempel"))
(cl-subseq match-snippets 0 (min (length match-snippets) acm-backend-tempel-candidates-number)))
candidates))))
(cl-subseq match-snippets 0 (min (length match-snippets) acm-backend-tempel-candidates-number)))))))

(defun acm-backend-tempel-candidate-expand (candidate-info bound-start)
(delete-region bound-start (point))
Expand All @@ -41,7 +40,7 @@
(let ((snippet
(alist-get (intern-soft (plist-get candidate :label))
(tempel--templates))))
(mapconcat #'tempel--print-element snippet " ")))
(mapconcat #'tempel--print-template snippet " ")))

(provide 'acm-backend-tempel)

Expand Down

0 comments on commit cc5bb6f

Please sign in to comment.