I don't know how to contribute to this email discussions. So I'm not sure if replying to this email is the correct way.
In response to latest "digest", regarding Github, I find that exchanging views in Github "issues" is very straightforward and clean, while the mailing lists are very cumbersome to process with too much copied content, and hard to navigate. I do not know if Gitlab is better than Github, but Github is way more effective to exchange views on issues than the email exchange/digests. [image: Mailtrack] <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&> Sender notified by Mailtrack <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&> 04/22/24, 01:12:11 PM On Mon, Apr 22, 2024 at 12:47 PM < matlab-emacs-discuss-requ...@lists.sourceforge.net> wrote: > Send Matlab-emacs-discuss mailing list submissions to > matlab-emacs-discuss@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > or, via email, send a message with subject or body 'help' to > matlab-emacs-discuss-requ...@lists.sourceforge.net > > You can reach the person managing the list at > matlab-emacs-discuss-ow...@lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Matlab-emacs-discuss digest..." > > > Today's Topics: > > 1. Re: new branches, plans, rename development branch to > default, mirror to github (Uwe Brauer) > 2. Re: new branches, plans, rename development branch to > default, mirror to github (martinoidar) > 3. Re: new branches, plans, rename development branch to > default, mirror to github (Uwe Brauer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 22 Apr 2024 14:52:39 +0200 > From: Uwe Brauer <o...@mat.ucm.es> > To: martinoidar <martinoi...@gmail.com> > Cc: Uwe Brauer <o...@mat.ucm.es>, > matlab-emacs-discuss@lists.sourceforge.net > Subject: Re: [Matlab-emacs-discuss] new branches, plans, rename > development branch to default, mirror to github > Message-ID: <87r0exwodk....@mat.ucm.es> > Content-Type: text/plain; charset="utf-8" > > > Hi > > Some comments, since it did not work as expected. > > > > On 21.04.2024 19:40, Uwe Brauer wrote: > > > Your approach is indeed cumbersome. > > > In mine we need to: > > > 1. Install `matlab-support` - a? debian package that enables matlab > > integration within the system: > > > sudo apt install matlab-support > > installed > > > 2. In Emacs: install `matlab-mode` package > > installed > > 3. Download > > > > https://github.com/karthink/.emacs.d/blob/master/plugins/ob-octave-fix.el > > Installed > > > and put it somewhere? in Emacs search path. > > > 4. My init.el content with matlab/org-babel configurations: > > > ;; > > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > ;; enabling org-babel > > (org-babel-do-load-languages > > ?'org-babel-load-languages '( > > ?? ???? ??? ???? (C . t) ; enable processing C, C++, and D source blocks > > ?? ???? ??? ???? (matlab . t) > > ?? ???? ??? ???? ;;(perl . t) > > ?? ???? ??? ???? (octave . t) > > ?? ???? ??? ???? (org . t) > > ?? ???? ??? ???? (python . t) > > ???????????????????????????? (plantuml . t) > > ?? ???? ??? ???? (shell . t) > > ???? ??? ??? ???? )) > > > ;; setup matlab in babel > > (setq org-babel-default-header-args:matlab > > ? '((:results . "output") (:session . "*MATLAB*"))) > > > ;; octave/matlab-fix > > ;;;; (require 'ob-octave-fix nil t)??? ; This is for older approach > > (require 'ob-octave-fix) > > done. > > > Now I executed > > #+begin_src matlab > x = [1, 2, 3, 4, 5]; > fprintf('|%d', x) > #+end_src > > And obtained in a different window: > --8<---------------cut here---------------start------------->8--- > > NameErrorTraceback (most recent call last) > <ipython-input-3-e039b5096438> in <module> > 1 x = [1, 2, 3, 4, 5]; > ----> 2 fprintf('|%d', x) > > NameError: name 'fprintf' is not defined > > --8<---------------cut here---------------end--------------->8--- > > So > > 1. the result is not inserted in my org buffer, > > 2. Morever fprintf is not defined, let me suspect this is not matlab > what is excecuted but octave. Am I right? > > What do I miss here? > > > Uwe > -- > I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel > I strongly condemn Putin's war of aggression against Ukraine. > I support to deliver weapons to Ukraine's military. > I support the EU and NATO membership of Ukraine. > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: smime.p7s > Type: application/pkcs7-signature > Size: 5673 bytes > Desc: not available > > ------------------------------ > > Message: 2 > Date: Mon, 22 Apr 2024 19:35:33 +0200 > From: martinoidar <martinoi...@gmail.com> > To: Uwe Brauer <o...@mat.ucm.es> > Cc: matlab-emacs-discuss@lists.sourceforge.net > Subject: Re: [Matlab-emacs-discuss] new branches, plans, rename > development branch to default, mirror to github > Message-ID: <1cf0b8fe-37b0-4922-84cc-41d66191b...@gmail.com> > Content-Type: text/plain; charset=UTF-8; format=flowed > > > On 22.04.2024 14:52, Uwe Brauer wrote: > > Hi > > > > Some comments, since it did not work as expected. > > > > > >> On 21.04.2024 19:40, Uwe Brauer wrote: > >> Your approach is indeed cumbersome. > >> In mine we need to: > >> 1. Install `matlab-support` - a? debian package that enables matlab > >> integration within the system: > >> sudo apt install matlab-support > > installed > > > >> 2. In Emacs: install `matlab-mode` package > > installed > >> 3. Download > >> > https://github.com/karthink/.emacs.d/blob/master/plugins/ob-octave-fix.el > > Installed > > > >> and put it somewhere? in Emacs search path. > >> 4. My init.el content with matlab/org-babel configurations: > >> ;; > >> > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > >> ;; enabling org-babel > >> (org-babel-do-load-languages > >> ?'org-babel-load-languages '( > >> ?? ???? ??? ???? (C . t) ; enable processing C, C++, and D source > blocks > >> ?? ???? ??? ???? (matlab . t) > >> ?? ???? ??? ???? ;;(perl . t) > >> ?? ???? ??? ???? (octave . t) > >> ?? ???? ??? ???? (org . t) > >> ?? ???? ??? ???? (python . t) > >> ???????????????????????????? (plantuml . t) > >> ?? ???? ??? ???? (shell . t) > >> ???? ??? ??? ???? )) > >> ;; setup matlab in babel > >> (setq org-babel-default-header-args:matlab > >> ? '((:results . "output") (:session . "*MATLAB*"))) > >> ;; octave/matlab-fix > >> ;;;; (require 'ob-octave-fix nil t)??? ; This is for older approach > >> (require 'ob-octave-fix) > > done. > > > > > > Now I executed > > > > #+begin_src matlab > > x = [1, 2, 3, 4, 5]; > > fprintf('|%d', x) > > #+end_src > > > > And obtained in a different window: > > --8<---------------cut here---------------start------------->8--- > > > > NameErrorTraceback (most recent call last) > > <ipython-input-3-e039b5096438> in <module> > > 1 x = [1, 2, 3, 4, 5]; > > ----> 2 fprintf('|%d', x) > > > > NameError: name 'fprintf' is not defined > > > > --8<---------------cut here---------------end--------------->8--- > > > > So > > > > 1. the result is not inserted in my org buffer, > > > > 2. Morever fprintf is not defined, let me suspect this is not matlab > > what is excecuted but octave. Am I right? > > > > What do I miss here? > > > > > > Uwe > > > Well... > > 1. After installing matlab-support you should be able to Matlab from > bash by typing the command > > >> matlab > > Can you do that? > > ?? a) if yes > > ?????? Can you evoke matlab-shell in Emacs? (M-x matlab-shell) > > ?????? Again, you should be able to do that after installing matlab-mode. > > ?? b) if no: > > ?????? check what are the values of the variables: > `matlab-shell-command` and `matlab-shell-command-switches` > > ?????? In my case they are equal: `matlab` and ("-nodesktop"), > respectively, which is by default set in `matlab-shell.el` which is a > part of matlab-mode package. > > ????? Maybe you need to set them explicitely like here: > > ???? https://swang251.github.io/2021/12/03/Matlab-in-Emacs/ > > ???? ??? > > > > > > > > ------------------------------ > > Message: 3 > Date: Mon, 22 Apr 2024 21:39:57 +0200 > From: Uwe Brauer <o...@mat.ucm.es> > To: martinoidar <martinoi...@gmail.com> > Cc: Uwe Brauer <o...@mat.ucm.es>, > matlab-emacs-discuss@lists.sourceforge.net > Subject: Re: [Matlab-emacs-discuss] new branches, plans, rename > development branch to default, mirror to github > Message-ID: <87pluhp4oi....@mat.ucm.es> > Content-Type: text/plain; charset="utf-8" > > > > On 22.04.2024 14:52, Uwe Brauer wrote: > ----> 2 fprintf('|%d', x) > > > > Well... > > > 1. After installing matlab-support you should be able to Matlab from > > bash by typing the command > > Well, I am on tcsh, but this is not the point. > > > > > Can you do that? > > Yes I can, but mainly because during installation Matlab asks me to set > a symbolic link to /usr/local/bin > > So that is why > which matlab > > Return > /usr/local/bin/matlab > > > > ?? a) if yes > > > ?????? Can you evoke matlab-shell in Emacs? (M-x matlab-shell) > > > ?????? Again, you should be able to do that after installing matlab-mode. > > > Of course, I am using the matlab-shell very often, but from a matlab > file (.m) > > What I want to do is, to calculate > > 1. Matlab commands from an org buffer > > 2. And insert the result in that buffer. > > ?? b) if no: > > > ?????? check what are the values of the variables: > > `matlab-shell-command` and `matlab-shell-command-switches` > > > ?????? In my case they are equal: `matlab` and ("-nodesktop"), > > respectively, which is by default set in `matlab-shell.el` which is a > > part of matlab-mode package. > > > So it is in mine. > > Again, I use the matlab-shell very often but from .m files. > > I think I will start emacs -Q and load you configuration+minimal matlab > conf > and see what happens. > > I find in strange that in our case fprintf does not work. > It works for me in the matlab-shell and using my (complicated) python > engine solution > > Uwe > > > > > -- > I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel > I strongly condemn Putin's war of aggression against Ukraine. > I support to deliver weapons to Ukraine's military. > I support the EU and NATO membership of Ukraine. > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: smime.p7s > Type: application/pkcs7-signature > Size: 5673 bytes > Desc: not available > > ------------------------------ > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Matlab-emacs-discuss mailing list > Matlab-emacs-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > > ------------------------------ > > End of Matlab-emacs-discuss Digest, Vol 115, Issue 5 > **************************************************** >
_______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss