Re: [Matlab-emacs-discuss] Submit Matlab mode to MELPA

2013-10-28 Thread Eric Ludlam
Hi Jack, That sounds like a good idea to me. Thanks for considering it. If you have suggestions on how to then update any download / INSTALL doc, let me know and I can push those changes. Thanks Eric From: Jack Morrison [mailto:jackmorris...@gmail.com] Sent: Monday, October 21, 2013 9:23 AM

Re: [Matlab-emacs-discuss] Issue of drop-down menu with Evil

2013-10-28 Thread Eric Ludlam
I haven't used Evil, but according to Emacswiki: http://www.emacswiki.org/emacs/Evil there is a variable 'evil-emacs-state-modes' where you should probably put matlab-shell-mode to disable evil. Matlab-shell-mode has a few matlab-isms in it that evil probably doesn't translate well anyway. I

Re: [Matlab-emacs-discuss] Submit Matlab mode to MELPA

2013-12-05 Thread Eric Ludlam
dd-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/";) t) and then you call M-x install-package and select matlab-mode. I'll look at adding a recipe to MELPA for it. Cheers, Jack On Mon, Oct 28, 2013 at 4:54 PM, Eric Ludlam mail

Re: [Matlab-emacs-discuss] matlab-shell could not find external editor

2014-01-02 Thread Eric Ludlam
Hi, The external editor is set up when MATLAB runs the file in toolbox/emacsinit.m. Emacs-shell should run this automatically, but if it failed, you could run it by hand. You can also open the MATLAB preferences, and under the editor, specify an external editor, and specify "emacsclient -n".

Re: [Matlab-emacs-discuss] Submit Matlab mode to MELPA

2014-01-07 Thread Eric Ludlam
Thanks! I'll have to be even more careful with the CVS head now. :) Eric From: makajawanj...@gmail.com [mailto:makajawanj...@gmail.com] On Behalf Of Jack Morrison Sent: Monday, January 06, 2014 3:35 PM To: Eric Ludlam Cc: Jack Morrison; matlab-emacs-discuss@lists.sourceforge.net Subjec

Re: [Matlab-emacs-discuss] full of spam!

2014-01-21 Thread Eric Ludlam
Thanks for pointing that out. I appear to have some other filter removing spam from my inbox. I logged into the mailman admin page for this list and discovered it didn’t have a password (!) anymore, and that the member-only filter was turned off. I have rectified both problems and the filter

Re: [Matlab-emacs-discuss] mlint.el

2014-01-31 Thread Eric Ludlam
Hi Eric, You will need to reconfigure your mlint programs: M-x customize-variable RET mlint-programs RET And specify the location of your MATLAB install where the mlint command-line program is, not the mlint.el Emacs program. This particular part of mlint hasn't changed much over the past few

Re: [Matlab-emacs-discuss] matlab-emacs slows down

2014-03-06 Thread Eric Ludlam
Hi, I don't recall why we picked 8192 as the size of the back-search buffer. If some other value makes sense, I'll be happy to update the code with the revised smaller number. Of course, with the newer MATLAB I tried out today, it no longer emits the hyperlink text at all, so it is searching

Re: [Matlab-emacs-discuss] Tab-completion (auto-complete) in matlab-mode, not in M-shell

2014-07-03 Thread Eric Ludlam
Hi Norberto, There is OK CEDET support for MATLAB on the sourceforge site, but it isn’t very broad. As such, you should be able to setup autocomplete and CEDET for MATLAB the same as C or some of the other supported languages. If you also want MATLAB shell based completions, no one has tried

Re: [Matlab-emacs-discuss] Tab-completion (auto-complete) in matlab-mode, not in M-shell

2014-07-07 Thread Eric Ludlam
ask MATLAB for its current path. I just don’t know enough about autocomplete to help make that happen. Eric From: Norberto Degara [mailto:norberto.deg...@gmail.com] Sent: Thursday, July 03, 2014 7:35 PM To: Eric Ludlam Cc: matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matlab-emacs

Re: [Matlab-emacs-discuss] Adaptive comment column for 'matlab-comment', i.e. like 'comment-dwim' in Emacs?

2014-08-20 Thread Eric Ludlam
Hi Christian, Right now the ‘matlab-comment’ function is pretty simple. A quick look at it indicates that it wouldn’t be too hard to add in something like what you describe. I’ve attached a small patch that does something vaguely like what you are interested in. Hopefully it provides hints

Re: [Matlab-emacs-discuss] Auto-completion while using Matlab remotely

2014-09-02 Thread Eric Ludlam
Hi, The reason is that the Semantic part tries to find the actual .m files so it can build up its symbol tables. In theory, you could use TRAMP and rig up a directory name by hand (ie - not using the code in the defvar for line 55), such as: (setq semantic-matlab-root-directory "/ssh:william@

Re: [Matlab-emacs-discuss] matlab-shell-last-error does not find errors

2014-09-19 Thread Eric Ludlam
Hi Torben, It looks like the format of the error messages have changed in newer versions of MATLAB, so Emacs is just missing out on the pattern. I don't run on Linux much anymore so I never noticed. The attached patch should fix up this specific case. I can't check it in because it would b

Re: [Matlab-emacs-discuss] Bug in auto-filling strings

2014-09-23 Thread Eric Ludlam
Hi Hunter, I made a small change to how strings are auto-filled that I think better covers several variants of pre-existing [] around the string. I submitted the change to the CVS repository on sourceforge. Could you try it out and let me know how it goes? Thanks Eric From: Hunter McClella

Re: [Matlab-emacs-discuss] no link within the error message

2014-09-24 Thread Eric Ludlam
Hi Sebastian, Newer MATLABs have different text output for errors than in the past. If you get the latest Matlab.el from source-forge, (as of last week when someone else reported it) and look in matlab.el for the variable gud-matlab-error-regexp, you will see where I have an if'd out regex tha

Re: [Matlab-emacs-discuss] Bug in auto-filling strings

2014-10-03 Thread Eric Ludlam
skipped inside the brackets. I’m sure it could be brute-forced with enough time, but it’ll be messy. ;) Eric From: Hunter McClelland [mailto:hunter.mcclell...@gmail.com] Sent: Thursday, October 02, 2014 8:01 PM To: Eric Ludlam Cc: matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matlab

Re: [Matlab-emacs-discuss] Tab completion broken with 2014b

2014-10-08 Thread Eric Ludlam
Thanks for letting me know. I'll see what I can figure out. Eric -Original Message- From: Henrik Gollee [mailto:henrik.gol...@glasgow.ac.uk] Sent: Tuesday, October 07, 2014 5:40 PM To: matlab-emacs-discuss@lists.sourceforge.net Subject: [Matlab-emacs-discuss] Tab completion broken with

Re: [Matlab-emacs-discuss] Problem/bug matlab emacs mode ?

2014-10-14 Thread Eric Ludlam
leave on. That stack will point at what the problem area is, and possible what additional data is needed to reproduce. Thanks Eric From: Torben Knudsen [mailto:t...@es.aau.dk] Sent: Tuesday, October 14, 2014 3:29 AM To: Eric Ludlam Cc: matlab-emacs-discuss@lists.sourceforge.net Subject

Re: [Matlab-emacs-discuss] tab completion of matlab shell mode for R2014b

2014-10-30 Thread Eric Ludlam
Hi, This came up a bit earlier on this mailing list. I have a first pass fix but am waiting on help from the team who changed the API on how to do it right without breaking things for older MATLABs. I'll post when I've updated CVS. Thanks Eric -Original Message- From: Naoki Saito [m

Re: [Matlab-emacs-discuss] Tab completion broken with 2014b

2014-11-12 Thread Eric Ludlam
e CVS repository for this to work. I haven't fixed the downloader MATLAB Script yet, so you will need to do it by hand for now. I hope to get to that part soon. Let me know how it goes! Thanks Eric -Original Message----- From: Eric Ludlam Sent: Wednesday, October 08, 2014 12:57 PM T

Re: [Matlab-emacs-discuss] Finding errors cited in the shell buffer

2014-11-13 Thread Eric Ludlam
Hi Torben, Sorry for the delay in getting back to you. The error strings emitted from MATLAB have changed, and I haven't had time to update the regexp in MATLAB. I've been fixing the tab completion most recently, and will poke at this soon. Eric From: Torben Knudsen [mailto:t...@es.aau.dk] Sen

Re: [Matlab-emacs-discuss] Tab completion broken with 2014b

2014-11-14 Thread Eric Ludlam
oblems, hopefully it will be clear what needs to be done. Let me know how it goes. Eric -Original Message- From: Henrik Gollee [mailto:henrik.gol...@glasgow.ac.uk] Sent: Thursday, November 13, 2014 4:47 PM To: Eric Ludlam; matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matla

Re: [Matlab-emacs-discuss] el-get install matlab-mode compile error

2014-12-15 Thread Eric Ludlam
Hi, I’m not sure why your Emacs 24.4 wouldn’t have EIEIO installed. It has been a part of default Emacs for quite a long time. From a stock emacs, do : M-x locate-library RET eieio RET to see what it says. If it is there, then there is something else going on during command line build.

Re: [Matlab-emacs-discuss] el-get install matlab-mode compile error

2014-12-16 Thread Eric Ludlam
[mailto:angelch...@gmail.com] Sent: Monday, December 15, 2014 7:00 PM To: Eric Ludlam Cc: matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matlab-emacs-discuss] el-get install matlab-mode compile error Hi Eric, Thanks for your reply. I checked the eieio installation then this is what emacs says

Re: [Matlab-emacs-discuss] Problem Configuring matlab-mode with CEDET+matlab-shell+ECB+mlint

2015-01-30 Thread Eric Ludlam
ECB will try to use ‘imenu’ to show tags in the list of tags buffer if the CEDET/Semantic tools aren’t installed/on by default. The imenu version as far as I remember only shows the names, not the prototype information. You will need to follow the readme on getting the CEDET tools installed to

Re: [Matlab-emacs-discuss] Strange matlab-mode problem

2015-04-29 Thread Eric Ludlam
Problem 1 is probably related to semantic-idle-completion-mode, which queries for completions from MATLAB, then while building up a 'correct' tag, tries to figure out where it came from. I'm not sure what changed (performance wise) since it was implemented. In any case, it may be possible for

Re: [Matlab-emacs-discuss] mlint-minor-mode issues

2015-06-07 Thread Eric Ludlam
Hi, I can only assume that an error is being thrown when attempting to mlint the buffer. You can do this to learn more: M-x toggle-debug-on-error RET and try again. It should pop up an stack trace showing what the error is. Eric -Original Message- From: Dennis Ogbe [mailto:do...@pur

Re: [Matlab-emacs-discuss] recognizing comments

2015-06-07 Thread Eric Ludlam
Hi Jim, Here is a tweaked version of the Matlab-comment function that should fix the problem you found. If it works for you let me know and I can update it. Enjoy Eric (defun matlab-comment () "Add a comment to the current line." (interactive) (cond ((matlab-ltype-empty)

Re: [Matlab-emacs-discuss] CVS down?

2015-08-03 Thread Eric Ludlam
I just tried your link, and everything worked for me. Source Forge has not been reliable recently, so the best I can offer is to try again. Eric From: Hunter McClelland [mailto:hunter.mcclell...@gmail.com] Sent: Sunday, July 26, 2015 2:48 PM To: matlab-emacs-discuss@lists.sourceforge.net Subjec

Re: [Matlab-emacs-discuss] change directory, matlab-shell

2015-08-03 Thread Eric Ludlam
Hi Uwe, Directory tracking in the shell is handled by comint mode with `shell-dirtrackp'. I snooped around in comint but to be honest, I don't know why your code snippet doesn't trigger dirtracking where typing it in yourself would work. It may be that matlab-shell-collect-command-output and

Re: [Matlab-emacs-discuss] matlab-emacs fails to open a file for edit (2014a)

2015-09-18 Thread Eric Ludlam
The matlab setup for Emacs sets the editor preference to “emacsclient –n”. Emacsclient itself depends on the EDITOR command to be set so it can find your emacs. Thus if emacsclient can’t find Emacs already running (because you didn’t setup emacs client) it will try to start Emacs via EDITOR.

Re: [Matlab-emacs-discuss] matlab-emacs fails to open a file for edit (2014a)

2015-10-01 Thread Eric Ludlam
:54 PM To: Eric Ludlam Cc: Dennis Ogbe ; matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matlab-emacs-discuss] matlab-emacs fails to open a file for edit (2014a) Thank you for all your assistance! It wasn't enough having (start-server) on .emacs I solved it by adding to emacsinit.

Re: [Matlab-emacs-discuss] Debugging

2015-12-02 Thread Eric Ludlam
89/productivity-matlab-emacs-integration-more) I'd appreciate if people could help me with these issues. Many thanks to Eric Ludlam and other contributors for making this great mode! Best, -tunc -- Go from Idea to Many

Re: [Matlab-emacs-discuss] Matlab shell freezes emacs when entering a multiline text

2015-12-02 Thread Eric Ludlam
Hi Yuval, If you set: M-x toggle-debug-on-quit RET then the next time you get a hang, press C-g to see the stack. Hopefully that will help you find the offending code, and perhaps someone can come up with a patch. Eric From: Yuval A. [mailto:yuval@gmail.com] Sent: Sunday, November 15,

Re: [Matlab-emacs-discuss] Missing execution line pointer after upgrading Matlab

2016-01-29 Thread Eric Ludlam
text is continued with '...'), it no longer treats this as one line but insists on stepping over each text line separately. I saw someone else (Tunc Aydin) mentioned the missing execution line pointer on this mailing list last fall, and was answered by Eric Ludlam that apparently t

Re: [Matlab-emacs-discuss] Missing execution line pointer after upgrading Matlab

2016-01-29 Thread Eric Ludlam
"\C-s" "Step one source line, possibly into a function.") (gud-def gud-next "dbstep %p;\ndbhotlink();\n" "\C-n" "Step over one source line.") This sort of works, but with some drawbacks: - The text line generated by 'dbhotl

Re: [Matlab-emacs-discuss] execute matlab in a different directory. GNU vs Xemacs

2016-01-29 Thread Eric Ludlam
I have some pending patches I haven't gotten around to pushing up into CVS. I don't like pushing patches without checking the results myself, and things have been busy lately. I could definitely use help for this sort of thing. Eric -Original Message- From: Uwe Brauer [mailto:o...@ma

Re: [Matlab-emacs-discuss] execute matlab in a different directory. GNU vs Xemacs

2016-02-02 Thread Eric Ludlam
M To: Eric Ludlam Cc: Uwe Brauer ; Torben Knudsen ; matlab-emacs Subject: Re: [Matlab-emacs-discuss] execute matlab in a different directory. GNU vs Xemacs >>> "Eric" == Eric Ludlam writes: > I have some pending patches I haven't gotten around to pushing up

Re: [Matlab-emacs-discuss] execute matlab in a different directory. GNU vs Xemacs

2016-02-03 Thread Eric Ludlam
been small and few, so full releases were not worthwhile to do. Eric -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Wednesday, February 03, 2016 9:24 AM To: dl Cc: Uwe Brauer ; Eric Ludlam ; matlab-emacs Subject: Re: [Matlab-emacs-discuss] execute matlab in a diff

Re: [Matlab-emacs-discuss] sourceforge github

2016-02-04 Thread Eric Ludlam
I can add a git repo to the project, but we'd have to translate the content over ourselves. (As far as I know anyway) Eric -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Thursday, February 04, 2016 10:29 AM To: matlab-emacs Subject: [Matlab-emacs-discuss] sourcefor

Re: [Matlab-emacs-discuss] CVS git, sourceforge git state of art

2016-02-09 Thread Eric Ludlam
I added a git repository which shows up as "matalb-emacs" in the project toolbar via the web interface on source forge. If you send me your source forge user id I'll add you in as a developer so you can write the repository. Thanks Eric -Original Message- From: Uwe Brauer [mailto:o...@

Re: [Matlab-emacs-discuss] git repo at sourceforge.

2016-03-04 Thread Eric Ludlam
Hi Torben, Thanks for the feedback. The recent discussion was about Uwe volunteering to help move matlab.el forward since I don't have the bandwidth to do that anymore. That took on the shape of some DVCS updates, installing some old pending patches, and possibly merging in some forks of matl

Re: [Matlab-emacs-discuss] git repo at sourceforge.

2016-03-07 Thread Eric Ludlam
-Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] >>> "Odd" == Odd Andersen writes: > Perhaps you are referring to this link: https://sourceforge.net/p/ > matlab-emacs/mailman/message/34818751/ > (Note the attachments: 'dbhotlink.m' and 'debugger.patch') > Odd A.

Re: [Matlab-emacs-discuss] Emacs-Matlab Integration under Windows OS

2016-05-04 Thread Eric Ludlam
Hi Qi, I don't know of a way to make matlab-shell work on Windows. It might be possible to create something similar to Bob's old script that would work, but that is not something I'm familiar with. Sorry. Eric -Original Message- From: Qi Sun [mailto:qisun...@gmail.com] Sent: Tuesday

Re: [Matlab-emacs-discuss] [patch] Issue with indentation of 'end'

2016-06-02 Thread Eric Ludlam
I believe that code is using absolute positioning (ie - matched positions in the buffer) so the calculated indent ci should have the actual amount to indent baked in. I note you have TABs in your pasted output. Since matlab.el is doing character calculations, that will mess it up. Since matl

Re: [Matlab-emacs-discuss] [patch] Issue with indentation of 'end'

2016-06-02 Thread Eric Ludlam
excursion (goto-char (match-beginning 0)) (current-column)) Current-column is used in a bunch of places already, so hopefully the number of problem areas is small. Eric -Original Message- From: Thibault Marin [mailto:thibault.ma...@gmx.com] Sent: Thursday, June 02, 2016 12:05 PM To: Eric Lud

Re: [Matlab-emacs-discuss] [patch] Issue with indentation of 'end'

2016-06-03 Thread Eric Ludlam
Your patch looks good to me by inspection. I'm glad it is working out for you. Eric -Original Message- From: Thibault Marin [mailto:thibault.ma...@gmx.com] Sent: Thursday, June 02, 2016 10:56 PM To: Eric Ludlam Cc: thibault.marin@gmx.domain.invalid; matlab-emacs-di

Re: [Matlab-emacs-discuss] compiler warnings

2016-09-02 Thread Eric Ludlam
Hi Uwe, The overlay abstraction should avoid the warnings, but perhaps the defalias isn't working with the byte compiler correctly. I don't know why those warnings exist. It may be an eval-and-compile type trick is needed around that block. There were some other warnings in the list where I

Re: [Matlab-emacs-discuss] Fixes for tab completion, debugging in with R2015b and later

2016-10-11 Thread Eric Ludlam
Hi Uwe, I added you to the Admin group for matlab-emacs. You should now get the "Admin" tab in sourceforge. Thanks Eric -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] I just realized, that although I have write access I don't have admin rights for the sourceforge repo,

Re: [Matlab-emacs-discuss] New pull request on github

2016-10-24 Thread Eric Ludlam
I have been looking at these locally with John. I've already looked through this stuff a while ago and it looked fine to me. The item with custom completion is a bit specific to some commands John has, but seems innocuous enough for anyone not using it. Eric -Original Message- From: S

Re: [Matlab-emacs-discuss] matlab-shell segfaults with matlab R2016b on Mac OS 10.11.6 Emacs 25.1

2016-11-14 Thread Eric Ludlam
Hi all, I’ve been poking at this crash with a co-worker who is more familiar with the java infrastructure in MATLAB than I am. We’ve been able to reproduce a crash, but not quite as described in the threads I’ve seen. We were going to try Java 8 next, but haven’t gotten that far. Anyone who

Re: [Matlab-emacs-discuss] matlab-shell segfaults with matlab R2016b on Mac OS 10.11.6 Emacs 25.1

2016-11-15 Thread Eric Ludlam
Thanks Peter, I’ve forwarded this along. I’ll let you all know if we learn something. Eric From: Peter Mao [mailto:peter@gmail.com] Sent: Tuesday, November 15, 2016 11:42 AM To: matlab-emacs-discuss@lists.sourceforge.net; Eric Ludlam Subject: Re: [Matlab-emacs-discuss] matlab-shell

Re: [Matlab-emacs-discuss] matlab-shell segfaults with matlab R2016b on Mac OS 10.11.6 Emacs 25.1

2016-12-01 Thread Eric Ludlam
Hi all, We identified that MATLAB on the MAC platform can be reproduced with a similar output to what has been noted here with: matlab -nodisplay -nojvm In this case, the line: matlab.internal.supportPackages.addInstalledSupportPackagesToPath in matlabrc.m is the culprit. If you don’t have s

Re: [Matlab-emacs-discuss] matlab-shell segfaults with matlab R2016b on Mac OS 10.11.6 Emacs 25.1

2016-12-14 Thread Eric Ludlam
Hello again, I’ve been watching progress in development around this Mac/Emacs/MATLAB issue. They have identified that the reason MATLAB is crashing in Emacs, but not on the command line is because Emacs is setting the stack size. A way to reproduce outside of Emacs is as follows: ulimit -s

Re: [Matlab-emacs-discuss] matlab-shell segfaults with matlab R2016b on Mac OS 10.11.6 Emacs 25.1

2016-12-19 Thread Eric Ludlam
h would be fatal for Emacs. You can safely make it considerably larger than its default value, if that proves inconveniently small. However, if you increase it too far, Emacs could overflow the real C stack, and crash. Regards, Rhys On 14/12/16 16:46, Eric Ludlam wrote: Hello again, I've been

Re: [Matlab-emacs-discuss] annoying path behavior of the *MATLAB* shell buffer who is the culprit

2017-02-24 Thread Eric Ludlam
Hiya, Matlab-shell uses dirtrack, or shell-directory-tracker. It just watches the input stream and changes default-directory when it sees: cd /some/path/to/directory I'll guess MATLAB syntax around (['/path']) is confusing it. You could probably replace all the parens etc with just: cd '/pat

Re: [Matlab-emacs-discuss] Syntax highlighting not working

2017-03-01 Thread Eric Ludlam
Font lock runs in a series of hooks to make it feel like it’s running in the background. If something throws an error in font lock, it gets shut off. In a fresh emacs, load up an offending M file, and check your *Messages* buffer to see if there is anything there. If not, you may need to lowe

Re: [Matlab-emacs-discuss] annoying path behavior of the *MATLAB* shell buffer who is the culprit

2017-03-01 Thread Eric Ludlam
erts the CD command. That would be pretty robust. Eric -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Friday, February 24, 2017 1:26 PM To: Eric Ludlam Cc: Uwe Brauer ; matlab-emacs-discuss Subject: Re: [Matlab-emacs-discuss] annoying path behavior of the *MATLA

Re: [Matlab-emacs-discuss] matlab-emacs on Windows 10 with a cygwin emacs

2017-05-30 Thread Eric Ludlam
Hi Chris, When using MATLAB from within Emacs, there is an extra toolbox directory added to the path, and an init file. The purpose of this toolbox is to shadow ‘opentoline’ to get it to integrate better with Emacs. If you run Emacs separately, you won’t get that toolbox. I haven’t tried it,

Re: [Matlab-emacs-discuss] How to debug MEX files (C code) from Emacs?

2017-07-19 Thread Eric Ludlam
Hi Dong, You can fire up GDB from within Emacs and "attach" to a process. Using this to attach to a process running MATLAB inside Emacs' matlab-shell will let you debug through MATLAB code and into your C++ code. I haven't done this in a few years, and not with Mex (I was debugging MATLAB di

Re: [Matlab-emacs-discuss] Prevent Breaking New Line

2017-09-12 Thread Eric Ludlam
Hi Dave, That is ‘auto-fill-mode’ which is part of Emacs. matlab-mode extends auto-fill-mode, so you can use all of auto-fill’s behaviors, such as using C-x f to set the fill column to 100 or whatever you like. Eric From: Dave Coleman [mailto:davetcole...@gmail.com] Sent: Monday, September 1

Re: [Matlab-emacs-discuss] Removing extra lines from collect-command-output

2017-10-02 Thread Eric Ludlam
I wrote that a long time ago, but my vague recollection is that the newline was needed to make the subprocess execute the command. Is it adding a 2nd newline to the end of ‘command’ resulting in the spare line? Eric From: Nathaniel Chodosh [mailto:nchod...@andrew.cmu.edu] Sent: Monday, October

Re: [Matlab-emacs-discuss] Removing extra lines from collect-command-output

2017-10-03 Thread Eric Ludlam
Sounds reasonable to me. When you are happy with your changes, post a diff and hopefully Uwe can install it. Thanks Eric From: Nathaniel Chodosh [mailto:nchod...@andrew.cmu.edu] Sent: Tuesday, October 03, 2017 12:26 PM To: Eric Ludlam ; matlab-emacs-discuss@lists.sourceforge.net Subject: Re

Re: [Matlab-emacs-discuss] Removing extra lines from collect-command-output

2017-10-03 Thread Eric Ludlam
1:18 PM To: Eric Ludlam ; matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matlab-emacs-discuss] Removing extra lines from collect-command-output Great. I've never contributed to a sourceforge project, should I post the diff under patches? On Tue, Oct 3, 2017 at 12:59 PM Eric L

Re: [Matlab-emacs-discuss] executing matlab in org mode files (using the matlab-shell)

2017-10-31 Thread Eric Ludlam
MATLAB mode has a command to execute region in the MATLAB Shell from a .M file. I see no reason why you couldn't re-use that. It may be it needs updating to also start the shell, or to chdir if there is a function, or something like that. Eric -Original Message- From: Uwe Brauer [mai

Re: [Matlab-emacs-discuss] Removing extra lines from collect-command-output

2017-11-03 Thread Eric Ludlam
: Tuesday, October 17, 2017 11:44 AM To: Eric Ludlam ; matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matlab-emacs-discuss] Removing extra lines from collect-command-output Hi, Sorry about the delay, I had a busy few weeks. Here's the diff for matlab.el, I also included one for co

Re: [Matlab-emacs-discuss] executing matlab in org mode files (using the matlab-shell)

2017-11-03 Thread Eric Ludlam
that might explain any issues you're bumping into with org mode. Eric -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Friday, November 03, 2017 10:39 AM To: Eric Ludlam Cc: Uwe Brauer ; matlab-emacs-discuss Subject: Re: [Matlab-emacs-discuss] executing matlab i

Re: [Matlab-emacs-discuss] executing matlab in org mode files (using the matlab-shell)

2017-11-03 Thread Eric Ludlam
les. Eric -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Tuesday, October 31, 2017 5:27 PM To: Eric Ludlam Cc: Uwe Brauer ; matlab-emacs-discuss Subject: Re: [Matlab-emacs-discuss] executing matlab in org mode files (using the matlab-shell) >>> "Eric"

Re: [Matlab-emacs-discuss] almost doneRe: executing matlab in org mode files (using the matlab-shell)

2017-11-12 Thread Eric Ludlam
echo features. Sorry. Eric From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Saturday, November 04, 2017 11:35 AM To: Eric Ludlam Cc: matlab-emacs-discuss Subject: almost doneRe: [Matlab-emacs-discuss] executing matlab in org mode files (using the matlab-shell) On 11/03/2017 03:47 PM, Eric Lud

Re: [Matlab-emacs-discuss] Removing extra lines from collect-command-output

2017-11-13 Thread Eric Ludlam
Thanks Nate. Hopefully this works for Uwe for merge/test. Eric From: Nathaniel Chodosh [mailto:nchod...@andrew.cmu.edu] Sent: Wednesday, November 08, 2017 12:56 PM To: Eric Ludlam Cc: matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matlab-emacs-discuss] Removing extra lines from

Re: [Matlab-emacs-discuss] Removing extra lines from collect-command-output

2017-11-13 Thread Eric Ludlam
Hi Uwe, Are you not getting email from the matlab-emacs-discuss mailing list? I'm re-attaching the diffs to this email. Eric -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Monday, November 13, 2017 1:45 PM To: Eric Ludlam Cc: Nathaniel Chodosh ; Uwe B

Re: [Matlab-emacs-discuss] download emacs-matlab

2018-01-25 Thread Eric Ludlam
Hi Uwe, I’ve asked how to get the blog post updated so hopefully that reference will improve. I’ve poked around the SF site for a while as I’ve forgotten how to edit the web page. It’s been many years since I updated it. I’ll try to remember to do the update from home where my ssh keys are

Re: [Matlab-emacs-discuss] indention stopped working?

2018-02-05 Thread Eric Ludlam
Your examples work for me , but I don't have Emacs 27. The only thing I can think of is some sort of auto-fill behavior is going off, but that seems unlikely with just an indent-region. Eric -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Saturday, February 03, 2018

Re: [Matlab-emacs-discuss] indention stopped working?

2018-02-05 Thread Eric Ludlam
wn as detecting that is probably expensive. Eric -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Monday, February 05, 2018 4:23 PM To: Eric Ludlam Cc: Uwe Brauer ; matlab-emacs-discuss Subject: Re: [Matlab-emacs-discuss] indention stopped working? >>> "E

Re: [Matlab-emacs-discuss] org mode: execute matlab code and insert it, the matlab shell, matlab live editor, jupiter notebook

2018-07-02 Thread Eric Ludlam
rhaps it is being confused by newlines or something. Eric -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Monday, July 02, 2018 4:45 AM To: matlab-emacs-discuss Cc: John Ciolfi ; Eric Ludlam Subject: [Matlab-emacs-discuss] org mode: execute matlab code and insert it,

[Matlab-emacs-discuss] Patch for matlab.el to support string

2018-09-28 Thread Eric Ludlam
The attached patch adds support for Strings in matlab-mode. Previously, character vectors such as: a = 'char vector' a = 'char '' vector' were supported. This patch enables b = "string scalar" b = "string "" scalar" to also be highlighted. There is one bug remaining which is that: a = 'unt

Re: [Matlab-emacs-discuss] Patch for matlab.el to support string

2018-10-01 Thread Eric Ludlam
Thanks Uwe! Eric -Original Message- From: Uwe Brauer Sent: Saturday, September 29, 2018 9:53 AM To: Eric Ludlam Cc: matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matlab-emacs-discuss] Patch for matlab.el to support string >>> "Eric" == Eric Ludlam

Re: [Matlab-emacs-discuss] Font-lock breakage?

2018-10-25 Thread Eric Ludlam
I tried the case with: % foobar 1 and it font-locked ok for me. The comment/string highlighter won't highlight areas that are already highlighted by something else. Do you have any other font-lock trickery going on that might be highlighting numbers before the matlab lockers start up? Eric

Re: [Matlab-emacs-discuss] correction

2019-04-17 Thread Eric Ludlam
Hi Uwe, I'm not very familiar with those APIs.  Do all the icons auto clean up when the GUD process goes away? If so, it seems like a fine thing to include to me. Eric On 4/12/19 12:10 PM, Uwe Brauer wrote: "EL" == Eric Ludlam writes: Hi Eric, Thanks for you reply

Re: [Matlab-emacs-discuss] correction

2019-04-17 Thread Eric Ludlam
Hi Uwe, Looks like you were having some fun with the GUD API. :) The type of snippets you forwarded look like they could work, though I didn't try them.  My assumption was that if users started using a feature like you describe, and and typed: dbclear all or dbstop in foo and icons didn't

Re: [Matlab-emacs-discuss] correction

2019-04-21 Thread Eric Ludlam
On 4/21/19 4:49 AM, Uwe Brauer wrote: "EL" == Eric Ludlam writes: Hi Eric > Hi Uwe, > I'm not very familiar with those APIs.  Do all the icons auto clean up > when the GUD process goes away? Sorry for the delay. I am not sure I understand your question.

[Matlab-emacs-discuss] Support for "strings" in matlab/emacs mode + feature poll

2019-10-11 Thread Eric Ludlam
Hi everyone, Uwe recently merged in some updates for matlab-mode into the git master branch.   Thanks Uwe! I'd like to encourage everyone to give it a try!  To get "string" to work, I had to start over on the indentation & font-lock support in 'char vector' and %comment as well as basic naviga

Re: [Matlab-emacs-discuss] issue with setting up matlab-mode on mac OS with MATLAB 2019b

2019-12-31 Thread Eric Ludlam
Hi Shervin, It looks like you have two different versions of matlab-emacs on your two machines.  I changed how things are setup to be clearer.  emacsinit now deals with the path, and debugging stuff.  The 'emacs' package in matlab includes a set command (thus : emacs.set) for configuring tools

Re: [Matlab-emacs-discuss] issue with setting up matlab-mode on mac OS with MATLAB 2019b

2020-01-05 Thread Eric Ludlam
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 ma

Re: [Matlab-emacs-discuss] MELPA package finally updated

2020-01-15 Thread Eric Ludlam
Huzzah!  Thanks Uwe. Eric On 1/11/20 9:04 AM, Uwe Brauer wrote: Hi I finally managed to submit the patch, which includes all the needed subdirectories into the MELPA package, I had to fork, create a branch, and then a pull request. I was just informed that it was merged. So the new, hopefully

Re: [Matlab-emacs-discuss] Problem with make command

2020-06-12 Thread Eric Ludlam
Hi Ollie, I missed your email when you first sent it.  Sorry. It looks like you have a different flavor of Emacs installed.  To use the Makefile, you can do this instead: make EMACS=spacemacs or make EMACS=/path/to/my/emacs Hopefully that helps you get going! Eric On 5/28/20 3:55 PM, Olli

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2020-11-25 Thread Eric Ludlam
Hi Jonathan, As new version of MATLAB come out, the text that comes out for errors, completions, and all sorts of things change which can break the shell. What version of MATLAB are you using, and which version of the matlab mode code are you using? We made a bunch of updates last winter to

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2020-11-26 Thread Eric Ludlam
t I've looked at the changelog locally and on sourceforge, and the latest commit is the same one... Best, Jonathan On Wed, 25 Nov 2020 at 18:03, Eric Ludlam <mailto:ericlud...@gmail.com>> wrote: Hi Jonathan, As new version of MATLAB come out, the text that comes out for er

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2020-11-28 Thread Eric Ludlam
nflict, or some missing configuration? Thank you for the patch! I'll try it out, and I'll using Matlab mode from the git source as well. Do you have a pointers for setting up jump-to-function functionally? Thanks again for all the help and information, it's really appreciated.

Re: [Matlab-emacs-discuss] ELPA package

2020-11-29 Thread Eric Ludlam
ient times (or some time ago) are a more complicated issue. git shortlog -ns | more tells me Eric Ludlam (zappo) zappo Uwe Brauer davenar John Ciolfi dlebrecht While hg churn (yes I use hg-git) tells me eric@ zappo@ eludlam@ ciolfi@ davenar@ oub@ oub@ fritz_da_silva@

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2020-11-29 Thread Eric Ludlam
Hi Uwe, There are a bunch of old misc fixes over in the usage1 branch that we should probably merge into master.  The save-and-go work I was doing never became as robust as I wanted, but it should be transparent if no one tries to activate the feature.  It also includes my patch for completio

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2020-11-29 Thread Eric Ludlam
On 11/29/20 10:45 AM, Uwe Brauer wrote: "EL" == Eric Ludlam writes: Hi Uwe, There are a bunch of old misc fixes over in the usage1 branch that we should probably merge into master.  The save-and-go work I was doing never became as robust as I wanted, but it should be transparent

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2020-11-30 Thread Eric Ludlam
On 11/30/20 2:53 AM, Uwe Brauer wrote: We've been using a majority of those patches deployed at MW for a while, so they should be good to go.  If the completion bit seems too risky, feel free to leave it out. I compiled, is it ok to test it for one day before pushing? Is there anything specific

Re: [Matlab-emacs-discuss] [matlab-emacs:src] New commit [93a747] by Eric Ludlam

2020-12-07 Thread Eric Ludlam
On 12/1/20 3:55 AM, Uwe Brauer wrote: "MiEGr" == MATLAB in Emacs Git repository writes: > ## Branch: usage1 > matlab-complete.el: > (matlab-complete-symbol): Check if matlab-shell was loaded before > checking if the shell is active. > By Eric L

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2020-12-21 Thread Eric Ludlam
this function to `xref-backend-functions' for matlab shell to use xref to find function and variable definitions." +(and (matlab-shell-buffer-barf-not-running) + 'matlab-shell))) ;;; MATLAB Shell Commands =

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2021-01-17 Thread Eric Ludlam
Hi Karthik, Thanks for the update and explanation. I finally had some time to sit with your code, try it out in a few situations, and teach myself how xref works.  I haven't had much opportunity to learn all the new stuff in eieio that it uses, so that was nice. I created matlab-xref.el on

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2021-01-17 Thread Eric Ludlam
Hi Jonathan, I tried using: M-x matlab-shell RET M-x company-mode RET then @ matlab prompt: >> fo M-x company-matlab-shell RET to simulate what you have in your stack trace below.  I get a yellow popup with completions I expect in it.  I can pick one and it then inserts the completion corr

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2021-01-17 Thread Eric Ludlam
l-collect-command-output (let ((inhibit-read-only t)) (apply oldfun r))) Best regards, Haik 17.01.2021 20:20 Eric Ludlam kirjutas: Hi Jonathan, I tried using: M-x matlab-shell RET M-x company-mode RET then @ matlab prompt:  >> fo M-x company-matlab-shell RET to simulate what you

Re: [Matlab-emacs-discuss] completion and goto-function in matlab-mode (Doom emacs)

2021-01-18 Thread Eric Ludlam
t; (and (matlab-shell-active-p) 'matlab-shell)) Karthik Eric Ludlam writes: Hi Karthik, Thanks for the update and explanation. I finally had some time to sit with your code, try it out in a few situations, and teach myself how xref works.  I haven't had much opportunity t

Re: [Matlab-emacs-discuss] Debugging in emacs is back !

2021-02-28 Thread Eric Ludlam
Hi David, On 2/26/21 9:05 PM, david.chap...@free.fr wrote: [...] With the disappearance of EEI, things weren’t quite the same. It was no longer possible to debug within emacs. This week however, I decided to check again the latest version of matlab-emacs…. Oh joy ! Glad you found it and

  1   2   >