Skip to content

ob-async: update function signature of ob-async-org-babel-execute-src…#93

Open
stsquad wants to merge 1 commit intoastahlman:masterfrom
stsquad:update-signature
Open

ob-async: update function signature of ob-async-org-babel-execute-src…#93
stsquad wants to merge 1 commit intoastahlman:masterfrom
stsquad:update-signature

Conversation

@stsquad
Copy link
Contributor

@stsquad stsquad commented Dec 20, 2022

…-block

Since 0625651e (Update to Org 9.6-3-ga4d38e) ob-async has been broken on the emacs-29 branch. Fix this by expanding the function to include the extra parameters.

This works but I'm unsure what effect it will have on older emacsen.

Fixes: #92
Signed-off-by: Alex Bennée alex.bennee@linaro.org

@stsquad
Copy link
Contributor Author

stsquad commented Dec 20, 2022

I tested this change on 28.2 and it seemed to work ok.

@yantar92
Copy link

yantar92 commented Dec 21, 2022 via email

@stsquad
Copy link
Contributor Author

stsquad commented Dec 21, 2022

@yantar92 so something like this:

(defun ob-async-org-babel-execute-src-block ( &optional orig-fun arg info params
                                              &rest executor-type) ; since 9.6-3

are you suggesting replacing the direct funcalls:

    (funcall orig-fun arg info params executor-type))

with:

    (apply orig-fun arg info params executor-type))

@yantar92
Copy link

yantar92 commented Dec 21, 2022 via email

…-block

Since 0625651e (Update to Org 9.6-3-ga4d38e) ob-async has been broken
on the emacs-29 branch. Fix this by expanding the function to include
&rest other-args and future proofing against org-mode adding new
arguments that ob-async doesn't need to see.

Fixes: astahlman#92
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

---
v2
  - use &rest for the new arg
  - use apply to call the original function
v3
  - use other-args
@stsquad
Copy link
Contributor Author

stsquad commented Dec 21, 2022

@yantar92 ok final update, and I tweaked the commit message as well. @astahlman happy to merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

org-babel-execute-src-block added one more argument

2 participants