Hi Shervin & Roman, John Ciolfi also encountered this MAC issue, and had sent me a patch. I don't have a MAC, but I verified his patch still worked for me on Windows w/ the netshell extension, and on Linux.
I pushed his change to a "mac_init" branch for testing. To use it, you can pull the mac_init branch from git, or download the snapshot from this link: https://sourceforge.net/p/matlab-emacs/src/ci/mac_init/tree/ Let us know how it goes. Eric On Sun, Jan 5, 2020 at 5:18 AM Shervin Safavi <neuroprincipl...@gmail.com> wrote: > Thanks Roman, Uwe, and Eric! > > I tried Roman's solution and it actually works and resolves the error I > explained earlier. But I guess there are still some issues: When I execute > “edit <functionName>” I will receive this error: > > Error using edit (line 66) > Could not find external editor '' > > Although this line: > "emacs.set('clientcmd', 'emacsclient -n -s > /var/folders/r5/zx0tj5sd3gg3dpynd41gr5s80000gn/T/emacs501/server-9483');" > was executed without any error. > > I guess there is some issue with executing this line on Mac OS (in general > or mine specifically): > > com.mathworks.services.Prefs.setStringPref('EditorOtherEditor', > clientcommand); > > When I tried to manually change MATLAB preferences (in the native > platform) to edit files with emacs it doesn't work (won't be open in emacs). > > Best, > Shervin > > On Sat, Jan 4, 2020 at 7:56 PM Uwe Brauer <o...@mat.ucm.es> wrote: > >> >>> "RG" == Roman Garnett <romangarn...@gmail.com> writes: >> >> > Hi Eric, >> > I had the same issue as Shervin using matlab-mode installed via MELPA >> > with emacs 26.3 on OS X 10.15.1. The MELPA version number for >> > matlab-mode is 20191223.2012. The issue was that the toolbox/+emacs >> > directory was for some reason not installed by emacs; after checking >> > out the repo and manually copying it in, everything seems to be >> > working fine. >> >> Hi Roman >> >> I dig a bit more into it. The recipe file at >> https://github.com/melpa/melpa/blob/master/recipes/matlab-mode >> >> is not correct. I have to see how to fix that but I don't have >> automatically write access to this file. >> >> Regards >> >> Uwe >> _______________________________________________ >> Matlab-emacs-discuss mailing list >> Matlab-emacs-discuss@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss >> > _______________________________________________ > Matlab-emacs-discuss mailing list > Matlab-emacs-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss >
_______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss