From: Ihor Radchenko <yantar92@posteo.net>
To: John C <john.ciolfi.32@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: ob-octave: improve MATLAB support
Date: Sat, 23 Nov 2024 15:57:06 +0000 [thread overview]
Message-ID: <87cyim9c4t.fsf@localhost> (raw)
In-Reply-To: <CACb3vdT-i2KdAKCJ8UFGzHLF9VhRGUFsfKL0E--_j8DzK7iCFg@mail.gmail.com>
John C <john.ciolfi.32@gmail.com> writes:
> Thanks for the feedback. I incorporated some of your suggestions for
> org-mode. I'll add the examples to https://git.sr.ht/~bzg/worg once
> the changes become part of org-mode.
Thanks for the update!
> Regarding (defvar org-babel-default-header-args:matlab '((:session .
> "*MATLAB*")), this was done on purpose. We've been using this setting
> for a while. Without it, org matlab evaluation is not good. I added a
> comment as to why it's there.
I can see the usefulness of using session by default for matlab, but it
is still going to be a breaking change. As a minimum, we should announce
it in the NEWS.
You may (1) split your news entry into "fix" part and ":results
handling" ; (2) add notice that matlab blocks will use session by default
> I looked into the use of REMOVE-ECHO which ob-octave.el already sets
> to t and don't believe this will help us. I think low-level comit
> requires the input which is captured by org.
May you please elaborate what exactly is not working when using
REMOVE-ECHO? Note that you normally need to pass the body alongside with
REMOVE-ECHO argument and `org-babel-comint-with-output' should remove
everything up to FULL-BODY before returning the output.
The problem you are trying to solve _should_ be solved by
`org-babel-comit-with-output'. If it is not, it is a bug that we should
fix.
> Any guidance on adding a test? To test properly we'll need MATLAB and
> https://github.com/mathworks/Emacs-MATLAB-Mode. Note, in
> https://github.com/mathworks/Emacs-MATLAB-Mode, I have a test for all
> this. Currently Emacs-MATLAB-Mode is advising org to get things
> working. When org is updated, Emacs-MATLAB-Mode will automatically not
> advise org.
For tests, you can refer to testing/lisp/test-ob-R.el tests. They also
rely upon external package (ESS) and on external R executable.
Ideally, we want to reuse tests from testing/lisp/test-ob-octave.el
--
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>
prev parent reply other threads:[~2024-11-23 15:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-08 19:30 ob-octave: improve MATLAB support John C
2024-11-09 9:32 ` Ihor Radchenko
2024-11-13 19:10 ` John C
2024-11-15 13:29 ` John C
2024-11-23 15:57 ` Ihor Radchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cyim9c4t.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=john.ciolfi.32@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).