ob-async: update function signature of ob-async-org-babel-execute-src…#93
Open
stsquad wants to merge 1 commit intoastahlman:masterfrom
Open
ob-async: update function signature of ob-async-org-babel-execute-src…#93stsquad wants to merge 1 commit intoastahlman:masterfrom
stsquad wants to merge 1 commit intoastahlman:masterfrom
Conversation
Contributor
Author
|
I tested this change on 28.2 and it seemed to work ok. |
|
Alex Bennée ***@***.***> writes:
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.
When advising functions with optional parameters, I suggest to use &rest
in the advise arglist + apply when calling the origin function. This is
forward-compatible against adding new optional parameters.
…--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
|
Contributor
Author
|
@yantar92 so something like this: are you suggesting replacing the direct funcalls: with: |
|
Alex Bennée ***@***.***> writes:
@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
```
Almost.
Just ... &rest other-args
It will work both in old and new versions and also if Org introduces new
optional arguments.
…--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
|
4970462 to
08d465f
Compare
…-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
08d465f to
5ec7d34
Compare
Contributor
Author
|
@yantar92 ok final update, and I tweaked the commit message as well. @astahlman happy to merge? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…-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