You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(9) |
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2009 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(7) |
Aug
(1) |
Sep
(5) |
Oct
|
Nov
(6) |
Dec
(3) |
2010 |
Jan
|
Feb
(10) |
Mar
(12) |
Apr
(13) |
May
(2) |
Jun
(4) |
Jul
(4) |
Aug
(4) |
Sep
|
Oct
(4) |
Nov
(2) |
Dec
(4) |
2011 |
Jan
(11) |
Feb
|
Mar
(18) |
Apr
|
May
(1) |
Jun
(12) |
Jul
(10) |
Aug
(4) |
Sep
(4) |
Oct
(5) |
Nov
|
Dec
(10) |
2012 |
Jan
(4) |
Feb
(26) |
Mar
|
Apr
(1) |
May
|
Jun
(8) |
Jul
(3) |
Aug
(1) |
Sep
|
Oct
(14) |
Nov
(1) |
Dec
(2) |
2013 |
Jan
(5) |
Feb
(2) |
Mar
(2) |
Apr
(5) |
May
(3) |
Jun
|
Jul
(8) |
Aug
(4) |
Sep
|
Oct
(7) |
Nov
(2) |
Dec
(7) |
2014 |
Jan
(14) |
Feb
|
Mar
(6) |
Apr
|
May
(3) |
Jun
(2) |
Jul
(4) |
Aug
(3) |
Sep
(7) |
Oct
(9) |
Nov
(9) |
Dec
(5) |
2015 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(1) |
Jun
(10) |
Jul
(3) |
Aug
(4) |
Sep
(8) |
Oct
(1) |
Nov
(3) |
Dec
(3) |
2016 |
Jan
(12) |
Feb
(59) |
Mar
(23) |
Apr
(11) |
May
(4) |
Jun
(15) |
Jul
|
Aug
|
Sep
(9) |
Oct
(19) |
Nov
(12) |
Dec
(5) |
2017 |
Jan
(1) |
Feb
(5) |
Mar
(5) |
Apr
|
May
(2) |
Jun
|
Jul
(5) |
Aug
|
Sep
(3) |
Oct
(12) |
Nov
(15) |
Dec
|
2018 |
Jan
(7) |
Feb
(6) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(2) |
Oct
(4) |
Nov
|
Dec
|
2019 |
Jan
(2) |
Feb
(9) |
Mar
(4) |
Apr
(9) |
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
|
Oct
(2) |
Nov
(6) |
Dec
(5) |
2020 |
Jan
(9) |
Feb
|
Mar
(2) |
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
(28) |
Dec
(5) |
2021 |
Jan
(11) |
Feb
(2) |
Mar
(2) |
Apr
(2) |
May
(15) |
Jun
(9) |
Jul
(11) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
(3) |
2022 |
Jan
(1) |
Feb
|
Mar
|
Apr
(9) |
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
(4) |
Jun
|
Jul
(22) |
Aug
(3) |
Sep
|
Oct
(1) |
Nov
|
Dec
(14) |
2024 |
Jan
|
Feb
|
Mar
|
Apr
(17) |
May
(35) |
Jun
(1) |
Jul
(18) |
Aug
(31) |
Sep
(5) |
Oct
(18) |
Nov
(20) |
Dec
(9) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
(5) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Vasco C. <vc...@gm...> - 2024-04-22 20:16:14
|
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 < mat...@li...> wrote: > Send Matlab-emacs-discuss mailing list submissions to > mat...@li... > > 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 > mat...@li... > > You can reach the person managing the list at > mat...@li... > > 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 <ou...@ma...> > To: martinoidar <mar...@gm...> > Cc: Uwe Brauer <ou...@ma...>, > mat...@li... > Subject: Re: [Matlab-emacs-discuss] new branches, plans, rename > development branch to default, mirror to github > Message-ID: <87r...@ma...> > 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 <mar...@gm...> > To: Uwe Brauer <ou...@ma...> > Cc: mat...@li... > Subject: Re: [Matlab-emacs-discuss] new branches, plans, rename > development branch to default, mirror to github > Message-ID: <1cf...@gm...> > 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 <ou...@ma...> > To: martinoidar <mar...@gm...> > Cc: Uwe Brauer <ou...@ma...>, > mat...@li... > Subject: Re: [Matlab-emacs-discuss] new branches, plans, rename > development branch to default, mirror to github > Message-ID: <87p...@ma...> > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > > ------------------------------ > > End of Matlab-emacs-discuss Digest, Vol 115, Issue 5 > **************************************************** > |
From: Uwe B. <ou...@ma...> - 2024-04-22 19:47:53
|
> 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. |
From: martinoidar <mar...@gm...> - 2024-04-22 17:35:49
|
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/ ??? |
From: Uwe B. <ou...@ma...> - 2024-04-22 12:52:56
|
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. |
From: martinoidar <mar...@gm...> - 2024-04-21 21:35:36
|
On 21.04.2024 19:40, Uwe Brauer wrote: > >> Well, I also prefer gitlab, especially after recent controversies with >> co-pilot >> (https://www.infoworld.com/article/3627319/github-copilot-is-unacceptable-and-unjust-says-free-software-foundation.html), >> though I'm not fervent about it... > > >> Yes, I do use org-babel and matlab. Until now, it hasn't been flawless >> experience but I manage to get the results back. >> But to be honest, I have no idea what mysterious mechanism enables me >> that. It's not been long since I've been using emacs, so there's still >> many lines in my init.el copied from here and there in a hope they >> will do... >> According to my notes I followed the instructions from here: >> https://gewhere.github.io/blog/2017/12/19/setup-matlab-in-emacs-and-babel-orgmode/ >> but nowwhen I inspect my init.el I can find only the code from the >> last section of above-mentioned page ("Setup MATLAB with babel >> orgmode"). >> Besides installing matlab-mode I have also manually downloaded: >> https://github.com/karthink/.emacs.d/blob/master/plugins/ob-octave-fix.el >> and included in init.el following the discussion found here: >> - https://www.reddit.com/r/emacs/comments/pufgce/matlab_mode/ >> - >> https://www.reddit.com/r/emacs/comments/fy98bs/orgbabels_matlab_session_output_is_malformed/ > >> ... and that's all... org-babel and matlab somehow work together and I >> try not to complain much... ;) > Thanks I will study this later. What I am most interested is > > 1. Execute matlab code in a org buffer (with the correct block around the matlab code. > > 2. Insert the result directly in the org buffer. > > Here in exchange is my method. > > 1. The python engine shipped by mathworks (warning different matlab > releases require different python versions, that is why I am > stuck at the moment with R2019A, which still support python 3.5. > > 2. ob-ipython > > Actually the following steps > > > > ** Python3 and matlab-kernel: HOWTO > sudo apt-get install python3-setuptools > sudo -H python3 -m pip install jupyter > sudo apt-get remove python3-pexpect > sudo -H python3 -m pip install pexpect > sudo -H python3 -m pip install matlab_kernel > ** Install the python API for matlab. > MATLABROOT=/usr/local/MATLAB/R2019a > Cd $MATLABROOT/extern/engines/python > sudo -H python3 setup.py install > ** Start the engine > Run > /usr/bin/python3 > in the python prompt: > import matlab.engine > eng = matlab.engine.start_matlab() > the eng command needs some time to run. > When finished run now > eng.quit() > > #+BEGIN_SRC emacs-lisp > (setq org-confirm-babel-evaluate nil) ;don't prompt me to confirm everytime I want to evaluate a block > ;;; display/update images in the buffer after I evaluate > (add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'append) > > (add-to-list 'org-src-lang-modes '("matlab" . matlab)) > (setq python-shell-interpreter "python3") > ;; set default headers for convenience > (setq org-babel-default-header-args:matlab > '((:results . "output replace") > (:session . "matlab") > (:kernel . "matlab") > (:exports . "code") > (:cache . "no") > (:noweb . "no") > (:hlines . "no") > (:tangle . "no"))) > (defalias 'org-babel-execute:matlab 'org-babel-execute:ipython) > (defalias 'org-babel-prep-session:matlab 'org-babel-prep-session:ipython) > (defalias 'org-babel-matlab-initiate-session 'org-babel-ipython-initiate-session) > #+END_SRC > #+RESULTS: > : org-babel-matlab-initiate-session > Then use the following example > #+begin_src matlab :results output latex :exports results :eval never-export :wrap latex > x = [1, 2, 3, 4, 5]; > fprintf('|%d', x) > #+end_src > > #+RESULTS: > #+begin_latex > |1|2|3|4|5 > #+end_latex > > > Uwe > > 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 2. In Emacs: install `matlab-mode` package 3. Download https://github.com/karthink/.emacs.d/blob/master/plugins/ob-octave-fix.el 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) ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; I do remember that this 'ob-octave-fix' is very important. Otherwise there are some problems... This works with Emacs 29.1 and currently Matlab 2023b. The code you provided returned nothing in my case and in order to obtain the same result I needed to tailor it a bit (Should there really be a call to 'fprintf'?): #+begin_src matlab :results output latex :exports results :eval never-export :wrap latex x = [1, 2, 3, 4, 5] ; disp(sprintf('|%d', x)) #+end_src #+RESULTS: #+begin_latex |1|2|3|4|5 #+end_latex |
From: Uwe B. <ou...@ma...> - 2024-04-21 17:41:05
|
> Well, I also prefer gitlab, especially after recent controversies with > co-pilot > (https://www.infoworld.com/article/3627319/github-copilot-is-unacceptable-and-unjust-says-free-software-foundation.html), > though I'm not fervent about it... > Yes, I do use org-babel and matlab. Until now, it hasn't been flawless > experience but I manage to get the results back. > But to be honest, I have no idea what mysterious mechanism enables me > that. It's not been long since I've been using emacs, so there's still > many lines in my init.el copied from here and there in a hope they > will do... > According to my notes I followed the instructions from here: > https://gewhere.github.io/blog/2017/12/19/setup-matlab-in-emacs-and-babel-orgmode/ > but nowwhen I inspect my init.el I can find only the code from the > last section of above-mentioned page ("Setup MATLAB with babel > orgmode"). > Besides installing matlab-mode I have also manually downloaded: > https://github.com/karthink/.emacs.d/blob/master/plugins/ob-octave-fix.el > and included in init.el following the discussion found here: > - https://www.reddit.com/r/emacs/comments/pufgce/matlab_mode/ > - > https://www.reddit.com/r/emacs/comments/fy98bs/orgbabels_matlab_session_output_is_malformed/ > ... and that's all... org-babel and matlab somehow work together and I > try not to complain much... ;) Thanks I will study this later. What I am most interested is 1. Execute matlab code in a org buffer (with the correct block around the matlab code. 2. Insert the result directly in the org buffer. Here in exchange is my method. 1. The python engine shipped by mathworks (warning different matlab releases require different python versions, that is why I am stuck at the moment with R2019A, which still support python 3.5. 2. ob-ipython Actually the following steps ** Python3 and matlab-kernel: HOWTO sudo apt-get install python3-setuptools sudo -H python3 -m pip install jupyter sudo apt-get remove python3-pexpect sudo -H python3 -m pip install pexpect sudo -H python3 -m pip install matlab_kernel ** Install the python API for matlab. MATLABROOT=/usr/local/MATLAB/R2019a Cd $MATLABROOT/extern/engines/python sudo -H python3 setup.py install ** Start the engine Run /usr/bin/python3 in the python prompt: import matlab.engine eng = matlab.engine.start_matlab() the eng command needs some time to run. When finished run now eng.quit() #+BEGIN_SRC emacs-lisp (setq org-confirm-babel-evaluate nil) ;don't prompt me to confirm everytime I want to evaluate a block ;;; display/update images in the buffer after I evaluate (add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'append) (add-to-list 'org-src-lang-modes '("matlab" . matlab)) (setq python-shell-interpreter "python3") ;; set default headers for convenience (setq org-babel-default-header-args:matlab '((:results . "output replace") (:session . "matlab") (:kernel . "matlab") (:exports . "code") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no"))) (defalias 'org-babel-execute:matlab 'org-babel-execute:ipython) (defalias 'org-babel-prep-session:matlab 'org-babel-prep-session:ipython) (defalias 'org-babel-matlab-initiate-session 'org-babel-ipython-initiate-session) #+END_SRC #+RESULTS: : org-babel-matlab-initiate-session Then use the following example #+begin_src matlab :results output latex :exports results :eval never-export :wrap latex x = [1, 2, 3, 4, 5]; fprintf('|%d', x) #+end_src #+RESULTS: #+begin_latex |1|2|3|4|5 #+end_latex 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. |
From: martinoidar <mar...@gm...> - 2024-04-21 17:08:52
|
> - I personally prefer gitlab over github, but this is just me (I am > not a huge fan of these interfaces like issues etc, I prefer good > old mailing lists, but then, I also prefer mercurial over git, but > the set of mercurial users is quite small nowadays.) Well, I also prefer gitlab, especially after recent controversies with co-pilot (https://www.infoworld.com/article/3627319/github-copilot-is-unacceptable-and-unjust-says-free-software-foundation.html), though I'm not fervent about it... > > BTW, do you use babel to execute matlab code directly in the org file? > > If so, how? > > I use the python engine for this. It is convenient and fast but to start > it, is a bit cumbersome. John told me that he is working on native > (python free) solution, but it is not in master still > Yes, I do use org-babel and matlab. Until now, it hasn't been flawless experience but I manage to get the results back. But to be honest, I have no idea what mysterious mechanism enables me that. It's not been long since I've been using emacs, so there's still many lines in my init.el copied from here and there in a hope they will do... According to my notes I followed the instructions from here: https://gewhere.github.io/blog/2017/12/19/setup-matlab-in-emacs-and-babel-orgmode/ but nowwhen I inspect my init.el I can find only the code from the last section of above-mentioned page ("Setup MATLAB with babel orgmode"). Besides installing matlab-mode I have also manually downloaded: https://github.com/karthink/.emacs.d/blob/master/plugins/ob-octave-fix.el and included in init.el following the discussion found here: - https://www.reddit.com/r/emacs/comments/pufgce/matlab_mode/ - https://www.reddit.com/r/emacs/comments/fy98bs/orgbabels_matlab_session_output_is_malformed/ ... and that's all... org-babel and matlab somehow work together and I try not to complain much... ;) Let me now if you are interested in details and I will send you my init.el. Regards, M |
From: Uwe B. <ou...@ma...> - 2024-04-19 13:01:59
|
> Everything's ok now. > The confusion was caused by the fact that when I downloaded > yesterday the latest snapshot from your master branch > I was convinced that it included Nidish's patches > (well, he had sent them almost half a year ago! :-)) yes. I wanted to test them, which I did and then I forgot all about it 😳 > and only today I realized it hadn't been true and the patches > were still only in his fork. > I downloaded the latest version of the package from Melpa and now > I have no problems with code highlighting. Good > BTW. in merge requests ( > https://sourceforge.net/p/matlab-emacs/src/merge-requests/ ) > Nidish's issues are still marked as "open". OK > PS. I upvote the idea of migration to github. After getting used to > it, the sourceforge webpage seems a bit... well... cumbersome? Well, right the sourceforge webpage is not very, hm modern (or user friendly) - The problem with github is there are already many either mirrors or forks, so we should be sure that users find the correct repository. That is why John proposal to have it within the mathwork groups seems logic to me, but alas, as I said, I don't have write access there. - I personally prefer gitlab over github, but this is just me (I am not a huge fan of these interfaces like issues etc, I prefer good old mailing lists, but then, I also prefer mercurial over git, but the set of mercurial users is quite small nowadays.) BTW, do you use babel to execute matlab code directly in the org file? If so, how? I use the python engine for this. It is convenient and fast but to start it, is a bit cumbersome. John told me that he is working on native (python free) solution, but it is not in master still Regards -- 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. |
From: martinoidar <mar...@gm...> - 2024-04-19 11:51:41
|
>> - I still have a tiny problem with matlab-mode in Emacs 29.1 (org >> 9.6.26). I simply loose syntax highlighting every time I insert for >> loop >> in matlab source block. Syntax goes to white after I add any character >> following '='. This is how it looks like: >> https://ibb.co/MDwPffV > Ok I did not see that link, I don't face this problem, but I realized I > use the font-lock patch. > > That is why I merged both patches into master and pushed. MELPA should > be updated soon. > > Regards Everything's ok now. The confusion was caused by the fact that when I downloaded yesterday the latest snapshot from your master branch I was convinced that it included Nidish's patches (well, he had sent them almost half a year ago! :-)) and only today I realized it hadn't been true and the patches were still only in his fork. I downloaded the latest version of the package from Melpa and now I have no problems with code highlighting. BTW. in merge requests ( https://sourceforge.net/p/matlab-emacs/src/merge-requests/ ) Nidish's issues are still marked as "open". PS. I upvote the idea of migration to github. After getting used to it, the sourceforge webpage seems a bit... well... cumbersome? |
From: Uwe B. <ou...@ma...> - 2024-04-18 20:10:35
|
>>> "m" == martinoidar <mar...@gm...> writes: > Hello, > thanks for maintaining the project. > Nidish N., thank you for font-lock-reference-face fix. > There are two issues regarding this fix: > - melpa repository (https://melpa.org/#/matlab-mode) still contains > version from July 2023. It would be nice if you could upload the > most recent version of the package in order to have its fixed > version available via emacs package installer for those who are less > proficient > in git or sourceforge stuff. > - I still have a tiny problem with matlab-mode in Emacs 29.1 (org > 9.6.26). I simply loose syntax highlighting every time I insert for > loop > in matlab source block. Syntax goes to white after I add any character > following '='. This is how it looks like: > https://ibb.co/MDwPffV Ok I did not see that link, I don't face this problem, but I realized I use the font-lock patch. That is why I merged both patches into master and pushed. MELPA should be updated soon. Regards -- 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. |
From: Uwe B. <ou...@ma...> - 2024-04-18 17:45:29
|
>>> "m" == martinoidar <mar...@gm...> writes: Hello > Hello, > thanks for maintaining the project. > Nidish N., thank you for font-lock-reference-face fix. > There are two issues regarding this fix: > - melpa repository (https://melpa.org/#/matlab-mode) still contains > version from July 2023. It would be nice if you could upload the > most recent version of the package in order to have its fixed > version available via emacs package installer for those who are less > proficient > in git or sourceforge stuff. Ok. Will try this later. BTW that reminds me to solve the GPL license issue, since we could then have the package in ELPA not only in MELPA. > - I still have a tiny problem with matlab-mode in Emacs 29.1 (org > 9.6.26). I simply loose syntax highlighting every time I insert for > loop > in matlab source block. Syntax goes to white after I add any character > following '='. This is how it looks like: > https://ibb.co/MDwPffV That is strange, I have a master version of emacs 29, which might correspond to yours, but why do you mention the org version? And now that we are in the discussion. 1. It has been proposed to move or mirror the main development to github. John Ciolfi proposed https://github.com/mathworks, but I don't have write access to this site, @John any news on your side. 2. I also would like, as we agreed, rename the main branch from «master» to «default» because that would simplify things for me. Regards 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. |
From: martinoidar <mar...@gm...> - 2024-04-18 16:12:02
|
Hello, thanks for maintaining the project. Nidish N., thank you for font-lock-reference-face fix. There are two issues regarding this fix: - melpa repository (https://melpa.org/#/matlab-mode) still contains version from July 2023. It would be nice if you could upload the most recent version of the package in order to have its fixed version available via emacs package installer for those who are less proficient in git or sourceforge stuff. - I still have a tiny problem with matlab-mode in Emacs 29.1 (org 9.6.26). I simply loose syntax highlighting every time I insert for loop in matlab source block. Syntax goes to white after I add any character following '='. This is how it looks like: https://ibb.co/MDwPffV Regards, M |
From: Uwe B. <ou...@ma...> - 2023-12-29 20:42:35
|
>>> "JC" == John Ciolfi <ci...@ma...> writes: > How about we use emacs-matlab-mode and on the main page indicate it is > now the primary devel location replacing source forge, though we'll > still use the source forge mailing lists, which we can list. Yeah, I thought however to push, for a while, say some weeks to both github and sourceforge. So I have to setup the default README file accordingly. > Let me investigate the best username to use for GitHub . I think it would be good to add the repo here: https://github.com/mathworks, Excellent idea. However, I do have write access. Can you generate a repository, named matlab-emacs and make yourself, Eric and me administrators? > The items on my plate are to > * get org mode with matlab setup > * Reorganize the files. Done items like cedt are old and likely > not used Right, that is also on my TODO list for a while > > * Add the matlab language server to give code navigation * > Investigat with flycheck / fly make vs the existing mlint 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. |
From: John C. <ci...@ma...> - 2023-12-29 19:16:55
|
How about we use emacs-matlab-mode and on the main page indicate it is now the primary devel location replacing source forge, though we'll still use the source forge mailing lists, which we can list. Let me investigate the best username to use for GitHub . I think it would be good to add the repo here: https://github.com/mathworks, The items on my plate are to * get org mode with matlab setup * Reorganize the files. Done items like cedt are old and likely not used * Add the matlab language server to give code navigation * Investigat with flycheck / fly make vs the existing mlint Thanks John ________________________________ From: Uwe Brauer <ou...@ma...> Sent: Friday, December 29, 2023 11:43 AM To: John Ciolfi <ci...@ma...> Cc: Uwe Brauer <ou...@ma...>; Matlab-emacs-discuss <mat...@li...> Subject: Re: [Matlab-emacs-discuss] new branches, plans, rename development branch to default, mirror to github >>> "JC" == John Ciolfi <ci...@ma...> writes: Hi John > Thanks Uwe, having development on github will help. I have a few items > I'd like to contribute but have been too busy to polish them off. > Moving to github will make that easier because I'm more familiar with > it. Ok. I would be especially interested in the stuff connected to org mode. I still use the python engine to pass code from an org file to matlab. 1. I will merge (or fast forward Nidish patches tomorrow) and then rename master-->default, if I don't receive any objections. a. Github. I have already setup a mirror which is gi...@gi...:matlab-mode/mirror.git however I am not sure that this is the best name and place. As I found out there are a bewildering number of different matlab-mode repositories on github, some quite old with no recent commits. I have to think what is the best strategy: - Which name to chose - What to write on the main page to make it clear that this is the official repository Suggestions are welcome 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. |
From: Uwe B. <ou...@ma...> - 2023-12-29 16:43:49
|
>>> "JC" == John Ciolfi <ci...@ma...> writes: Hi John > Thanks Uwe, having development on github will help. I have a few items > I'd like to contribute but have been too busy to polish them off. > Moving to github will make that easier because I'm more familiar with > it. Ok. I would be especially interested in the stuff connected to org mode. I still use the python engine to pass code from an org file to matlab. 1. I will merge (or fast forward Nidish patches tomorrow) and then rename master-->default, if I don't receive any objections. a. Github. I have already setup a mirror which is gi...@gi...:matlab-mode/mirror.git however I am not sure that this is the best name and place. As I found out there are a bewildering number of different matlab-mode repositories on github, some quite old with no recent commits. I have to think what is the best strategy: - Which name to chose - What to write on the main page to make it clear that this is the official repository Suggestions are welcome 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. |
From: John C. <ci...@ma...> - 2023-12-29 15:06:38
|
Thanks Uwe, having development on github will help. I have a few items I'd like to contribute but have been too busy to polish them off. Moving to github will make that easier because I'm more familiar with it. ________________________________ From: Uwe Brauer <ou...@ma...> Sent: Thursday, December 28, 2023 12:25 PM To: Matlab-emacs-discuss <mat...@li...> Subject: [Matlab-emacs-discuss] new branches, plans, rename development branch to default, mirror to github Hi all It took me a while to understand sourceforge merge request system (I rarely use sourceforge's web interface) A couple of things: 1. I just pushed to sourceforge several commits in different branches for testing, namely 1. Nidish two patches (thanks Nidish), that now dwell on two different branches. a. Font-lock and b. shell-patch. I tested font-lock, but don't have right now access to another machine that runs matlab so I cannot test this commit. If anybody else, please do. I would like to merge that into master in the next days. 2. The fill-fix branch. Eric committed several changes, that I tested but so far I have not reached to a conclusion on is the best solution. If anybody else wants to test that, please do. 2. I'd like to rename the «master» branch, «default» since it simplifies my workflow. 3. I also would like to create an official mirror on github, but I have to see how to edit the main sourceforge page to indicate that we will continue the development on github (I might also push regularly to sourceforge for a while). Comments are welcome Regards Uwe Brauer -- 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. |
From: Uwe B. <ou...@ma...> - 2023-12-28 17:25:45
|
Hi all It took me a while to understand sourceforge merge request system (I rarely use sourceforge's web interface) A couple of things: 1. I just pushed to sourceforge several commits in different branches for testing, namely 1. Nidish two patches (thanks Nidish), that now dwell on two different branches. a. Font-lock and b. shell-patch. I tested font-lock, but don't have right now access to another machine that runs matlab so I cannot test this commit. If anybody else, please do. I would like to merge that into master in the next days. 2. The fill-fix branch. Eric committed several changes, that I tested but so far I have not reached to a conclusion on is the best solution. If anybody else wants to test that, please do. 2. I'd like to rename the «master» branch, «default» since it simplifies my workflow. 3. I also would like to create an official mirror on github, but I have to see how to edit the main sourceforge page to indicate that we will continue the development on github (I might also push regularly to sourceforge for a while). Comments are welcome Regards Uwe Brauer -- 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. |
From: Uwe B. <ou...@ma...> - 2023-12-27 16:32:18
|
>>> "NNB" == Nidish Narayanaa Balaji <nid...@il...> writes: Hi Nidish, > In case this helps, here's a quick way to check the tramp stuff if you > have a second machine with MATLAB. I'll refer to the primary machine > as the local machine and the secondary machine as the remote machine > in the following. Sorry for not having responded earlier (the holidays...) > 1. Install emacs on the remote machine. Install matlab-mode on it also > (ensure it is the same version as on the local machine). > 2. Apply the patch on the installed matlab-mode on both the local & > remote machines. > 3. Ensure ssh server is running on the remote machine and is > discoverable from the local machine. > 4. Open a matlab file on the remote machine from an emacs session on > the local machine through TRAMP. > 5. Write some matlab code on the buffer. > 6. Invoke matlab-shell from the tramp-buffer. > 7. Check if matlab-shell-run-cell works. > 8. Check, from the MATLAB REPL, which device it is running on. It > should be running on the remote machine. Thanks for these details instructions. Though I do posses another machine, a MaC, I haven't had the time to set all this up, and I am not sure that I will have the time in the coming days. However, finally, I found out at least how to access the merge request on sourceforge, although I don't want to use their webinterface for merging merge requests, I prefer to pull (clone), check, and then move the commits on the main repository (and merge it there to master). So I think I will do that with our two requests (I will then also create two branches.). So far nobody seemed to have applied these patch(es) so maybe this way somebody feel inclined. However, before doing this I need to know: did you sign the FSF papers, and would you be willing to do so. The reason is, we want to move matlab-emacs-mode to ELPA (I have started the process twice, only one signature is missing, which reminds me to contact that person again). So please tell me whether you would be willing to do so. Another remark: An additional goal is to move or at least to mirror the repository to github since that might attract more people that feel more comfortable or acquainted with github (however I still would prefer to use the mailing list as the main communication channel, the github issues, for me are far inferior. I hope to do this still in 2023. And last but not least, I also plan to rename the main development branch: «master»--> «default». The reason has nothing to do with political issues, I am a mercurial user who access the git repositories via the hg-git plugin. In mercurial the main branch (which is technical a different beast than a git branch) is always called default and having the same name in git, could somehow simplify things for me. Kind regards 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. |
From: Nidish N. B. <nid...@il...> - 2023-12-20 17:29:51
|
In case this helps, here's a quick way to check the tramp stuff if you have a second machine with MATLAB. I'll refer to the primary machine as the local machine and the secondary machine as the remote machine in the following. 1. Install emacs on the remote machine. Install matlab-mode on it also (ensure it is the same version as on the local machine). 2. Apply the patch on the installed matlab-mode on both the local & remote machines. 3. Ensure ssh server is running on the remote machine and is discoverable from the local machine. 4. Open a matlab file on the remote machine from an emacs session on the local machine through TRAMP. 5. Write some matlab code on the buffer. 6. Invoke matlab-shell from the tramp-buffer. 7. Check if matlab-shell-run-cell works. 8. Check, from the MATLAB REPL, which device it is running on. It should be running on the remote machine. On 12/20/23 18:21, Uwe Brauer wrote: >>>> "NNB" == Nidish Narayanaa Balaji<nid...@il...> writes: >> No no - it is indeed backward compatible. I tested it out with emacs >> 28.1 also. font-lock-reference-face has been deprecated for a while >> now. And font-lock-constant-face has been around since at least emacs >> 20.3 (according to documentation). So the patch is backward >> compatible. > Ok thanks for checking. > > > Are there any other comments, @Eric, @John? > > I'd prefer to wait a bit more till I push, I did not encounter any difficulties so far. > But I only checked the part concerning the fonts, not TRAMP stuff. > >> On 12/20/23 17:18, Uwe Brauer wrote: >>>>>> "NNB" == Nidish Narayanaa Balaji<nid...@il...> writes: >>>> Hello All, >>>> I made a couple merge requests but Uwe told me that there are >>>> apparently issues merging on sourceforge atm. Here are the links to >>>> the two merge requests, just for reference: >>>> +https://sourceforge.net/p/matlab-emacs/src/merge-requests/3/ >>>> +https://sourceforge.net/p/matlab-emacs/src/merge-requests/4/ >>>> The first one was a fix for the fact that emacs 29.1 has removed >>>> font-lock-reference-face and we are to use font-lock-constant-face >>>> instead. >>> It seems to me that your patch is not backward compatible, so user of >>> emacs <29 will run into difficulties, right? >>> -- Dr. Nidish Narayanaa Balaji Humboldt Postdoctoral Fellow Institute of Aircraft Propulsion Systems Department of Aerospace Engineering and Geodesy University of Stuttgart Pfaffenwaldring 6 D-70569 Stuttgart Tel.: +49 711 685 69433 e-mail:nid...@il... |
From: Uwe B. <ou...@ma...> - 2023-12-20 17:21:22
|
>>> "NNB" == Nidish Narayanaa Balaji <nid...@il...> writes: > No no - it is indeed backward compatible. I tested it out with emacs > 28.1 also. font-lock-reference-face has been deprecated for a while > now. And font-lock-constant-face has been around since at least emacs > 20.3 (according to documentation). So the patch is backward > compatible. Ok thanks for checking. Are there any other comments, @Eric, @John? I'd prefer to wait a bit more till I push, I did not encounter any difficulties so far. But I only checked the part concerning the fonts, not TRAMP stuff. > On 12/20/23 17:18, Uwe Brauer wrote: >>>>> "NNB" == Nidish Narayanaa Balaji <nid...@il...> writes: >>> Hello All, >>> I made a couple merge requests but Uwe told me that there are >>> apparently issues merging on sourceforge atm. Here are the links to >>> the two merge requests, just for reference: >>> + https://sourceforge.net/p/matlab-emacs/src/merge-requests/3/ >>> + https://sourceforge.net/p/matlab-emacs/src/merge-requests/4/ >>> The first one was a fix for the fact that emacs 29.1 has removed >>> font-lock-reference-face and we are to use font-lock-constant-face >>> instead. >> It seems to me that your patch is not backward compatible, so user of >> emacs <29 will run into difficulties, right? >> -- 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. |
From: Nidish N. B. <nid...@il...> - 2023-12-20 16:30:05
|
No no - it is indeed backward compatible. I tested it out with emacs 28.1 also. font-lock-reference-face has been deprecated for a while now. And font-lock-constant-face has been around since at least emacs 20.3 (according to documentation). So the patch is backward compatible. On 12/20/23 17:18, Uwe Brauer wrote: >>>> "NNB" == Nidish Narayanaa Balaji <nid...@il...> writes: >> Hello All, >> I made a couple merge requests but Uwe told me that there are >> apparently issues merging on sourceforge atm. Here are the links to >> the two merge requests, just for reference: >> + https://sourceforge.net/p/matlab-emacs/src/merge-requests/3/ >> + https://sourceforge.net/p/matlab-emacs/src/merge-requests/4/ >> The first one was a fix for the fact that emacs 29.1 has removed >> font-lock-reference-face and we are to use font-lock-constant-face >> instead. > It seems to me that your patch is not backward compatible, so user of > emacs <29 will run into difficulties, right? > -- Dr. Nidish Narayanaa Balaji Humboldt Postdoctoral Fellow Institute of Aircraft Propulsion Systems Department of Aerospace Engineering and Geodesy University of Stuttgart Pfaffenwaldring 6 D-70569 Stuttgart Tel.: +49 711 685 69433 e-mail: nid...@il... |
From: Uwe B. <ou...@ma...> - 2023-12-20 16:19:04
|
>>> "NNB" == Nidish Narayanaa Balaji <nid...@il...> writes: > Hello All, > I made a couple merge requests but Uwe told me that there are > apparently issues merging on sourceforge atm. Here are the links to > the two merge requests, just for reference: > + https://sourceforge.net/p/matlab-emacs/src/merge-requests/3/ > + https://sourceforge.net/p/matlab-emacs/src/merge-requests/4/ > The first one was a fix for the fact that emacs 29.1 has removed > font-lock-reference-face and we are to use font-lock-constant-face > instead. It seems to me that your patch is not backward compatible, so user of emacs <29 will run into difficulties, right? -- 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. |
From: Uwe B. <ou...@ma...> - 2023-12-19 17:13:04
|
>>> "NNB" == Nidish Narayanaa Balaji <nid...@il...> writes: Hello Nidish > Hello All, > I made a couple merge requests but Uwe told me that there are > apparently issues merging on sourceforge atm. Here are the links to > the two merge requests, just for reference: > + https://sourceforge.net/p/matlab-emacs/src/merge-requests/3/ > + https://sourceforge.net/p/matlab-emacs/src/merge-requests/4/ > The first one was a fix for the fact that emacs 29.1 has removed > font-lock-reference-face and we are to use font-lock-constant-face > instead. > The second is a small fix I had to do to let me work with matlab-shell > over a TRAMP session. The issue was that it was initially calling > emacsinit.m addressed to the local machine, which matlab of course > can't find. I just changed "/home/<user-login-name>/" to "~/" in the > command and it reads the right emacsinit file. This still requires > that matlab-mode and emacs be installed in the exact same location on > the remote machine as on the local machine. It's not ideal, but it > serves my purposes for now. Thanks, I had no problem applying your patch to commit b49c86e5738f. I would like to test in the coming days, especially the font locking, since I don't use TRAMP. Do others, @Eric, @John have remarks to make? Thanks and regards 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. |
From: Nidish N. B. <nid...@il...> - 2023-12-19 16:56:50
|
Hello All, I made a couple merge requests but Uwe told me that there are apparently issues merging on sourceforge atm. Here are the links to the two merge requests, just for reference: + https://sourceforge.net/p/matlab-emacs/src/merge-requests/3/ + https://sourceforge.net/p/matlab-emacs/src/merge-requests/4/ The first one was a fix for the fact that emacs 29.1 has removed font-lock-reference-face and we are to use font-lock-constant-face instead. The second is a small fix I had to do to let me work with matlab-shell over a TRAMP session. The issue was that it was initially calling emacsinit.m addressed to the local machine, which matlab of course can't find. I just changed "/home/<user-login-name>/" to "~/" in the command and it reads the right emacsinit file. This still requires that matlab-mode and emacs be installed in the exact same location on the remote machine as on the local machine. It's not ideal, but it serves my purposes for now. I'm sending a single patch file for both the merge requests here. Best, Nidish -- Dr. Nidish Narayanaa Balaji Humboldt Postdoctoral Fellow Institute of Aircraft Propulsion Systems Department of Aerospace Engineering and Geodesy University of Stuttgart Pfaffenwaldring 6 D-70569 Stuttgart Tel.: +49 711 685 69433 e-mail: nid...@il... |
From: Uwe B. <ou...@ma...> - 2023-12-19 16:55:34
|
>>> "NNB" == Nidish Narayanaa Balaji <nid...@il...> writes: > This is correct - I currently have two merge requests. One for the > font-lock and another for the first prompt function. > I'll send a patch out to the mailing list today or tomorrow. Excellent, maybe others, for example Eric, want to make some comments as well. 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. |