File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 3535(require 'vc-git )
3636(require 'seq )
3737(require 'async )
38+ (require 'sideline )
3839
3940(eval-when-compile
4041 (require 'subr-x ))
@@ -1225,5 +1226,23 @@ TYPE - optional parameter, by default will use `overlay-popup'."
12251226 (interactive )
12261227 (blamer-show-commit-info 'posframe-popup ))
12271228
1229+
1230+ ;;;### autoload
1231+ (defun blamer-async-sideline-backend (command )
1232+ " Async backend provider for COMMAND in the `sideline' package."
1233+ (cl-case command
1234+ (`candidates (cons :async (lambda (callback &rest _ )
1235+ (blamer--get-async-blame-info
1236+ (blamer--get-local-name (buffer-file-name ))
1237+ (line-number-at-pos )
1238+ (line-number-at-pos )
1239+ (lambda (raw-commit-info )
1240+ (blamer--async-parse-line-info
1241+ raw-commit-info
1242+ (lambda (commit-info )
1243+ (funcall callback (list (blamer--create-popup-msg commit-info))))
1244+ (line-number-at-pos )))))))))
1245+
1246+
12281247(provide 'blamer )
12291248; ;; blamer.el ends here
You can’t perform that action at this time.
0 commit comments