From: David C. <dav...@fr...> - 2010-04-09 09:29:24
|
Eric Ludlam wrote: > Hi, > > I'm not sure why adding "-n" to your emacsclient script causes it to not be found. If the problem is related to the space in the command, a simple workaround is to create a shell script like this: > > myemacsclient.sh > -------------- > #!/bin/sh > emacsclient -n $* > -------------- > > And then use that shell script instead. > I have encountered the same problem on windows, where adding "-n" to the emacsclient options causes it not to be found, most likely due to the space in the command. The workaround I have found on windows is to change startup.m as follows: if (ispc) emacsinit('"emacsclient --alternate-editor emacs -n"'); else emacsinit; end Notice the double quotes within the single quotes... I haven't tried it on linux, but Eric's suggestion should certainly work. As far as the links for error messages are concerned, I'm also experiencing problems, with all matlab releases (R2006a, R2008a, R2009a). In particular error messages of the kind: ??? Error: File: myscript.m Line: 57 Column: 15 do not seem to be covered by the regexp. But great work, Eric ! You don't know how much I value what you've done, but I really, really regret Mathworks' decision to have dropped EmacsLink support... Cheers, David. |