Re: [Matlab-emacs-discuss] matlab-version/matlab-show-version

2024-12-09 Thread Eric Ludlam via Matlab-emacs-discuss
It's probably fine to not print the version number when matlab-shell starts. I don't think any other shell fcns print their version number. A holdover from a different age. Eric -Original Message- From: Uwe Brauer Sent: Saturday, December 7, 2024 2:40 AM To: Eric Ludla

Re: [Matlab-emacs-discuss] matlab-version/matlab-show-version

2024-12-05 Thread Eric Ludlam via Matlab-emacs-discuss
>From: Uwe Brauer >>>> "EL" == Eric Ludlam writes: >> The command matlab-show-version was always there since before I >> adopted matlab-mode. I'm not attached to it and would not mind if it >> were removed. > According to git blame or mercur

Re: [Matlab-emacs-discuss] matlab-version/matlab-show-version

2024-12-05 Thread Eric Ludlam via Matlab-emacs-discuss
--Original Message- From: Uwe Brauer Sent: Thursday, December 5, 2024 12:54 PM To: matlab-emacs-discuss@lists.sourceforge.net Cc: Eric Ludlam ; John Ciolfi Subject: matlab-version/matlab-show-version Hi I am currently dealing to get matlab-mode into ELPA. I will also open an issue in github

Re: [Matlab-emacs-discuss] matlab-sections.el

2024-11-25 Thread Eric Ludlam
I found the github issue about matlab-sections and the highlighting issue, and added a patch there that should both resolve the issue, and make it easier to add new features unique to different types of MATLAB files. Eric On Wed, Nov 20, 2024 at 3:10 PM Uwe Brauer wrote: > >>>

Re: [Matlab-emacs-discuss] matlab-sections.el

2024-11-20 Thread Eric Ludlam
gt; -- > *From:* Uwe Brauer > *Sent:* Wednesday, November 20, 2024 12:05 PM > *To:* John Ciolfi via Matlab-emacs-discuss > *Cc:* Eric Ludlam; John Ciolfi > *Subject:* Re: [Matlab-emacs-discuss] matlab-sections.el > > >>> "JCvM&qu

[Matlab-emacs-discuss] matlab-sections.el

2024-11-19 Thread Eric Ludlam
Hi all, I missed the discussions about the new matlab-sections.el that was added to matlab-mode recently. I like the idea, thanks Nidish for working on it. I spent a little time trying it out and wanted to share a few thoughts: * matlab-sections-break-face no longer inherits from font-lock-comm

Re: [Matlab-emacs-discuss] move -->github: rebase, and which branches could be deleted

2024-08-01 Thread Eric Ludlam
on to find the answers when I get some other tasks off my plate. Eric On Thu, Aug 1, 2024 at 11:16 AM Uwe Brauer wrote: > >>> "UB" == Uwe Brauer writes: > > >>> "EL" == Eric Ludlam writes: > >> Removing those 3 items are fine with me. H

Re: [Matlab-emacs-discuss] move -->github: rebase, and which branches could be deleted

2024-07-31 Thread Eric Ludlam
do that. That would make it much easier to verify my assumptions about fontlockhang, or guess at what shell-complete was about. Is there an easy way to do that? Thanks Eric On Wed, Jul 31, 2024 at 11:07 AM Uwe Brauer wrote: > >>> "EL" == Eric Ludlam writes: > &g

Re: [Matlab-emacs-discuss] move -->github: rebase, and which branches could be deleted

2024-07-31 Thread Eric Ludlam
Thanks for doing all this work Uwe. I appreciate it. For unmerged branches, I recognize some as branches that were merged via other avenues, and others are not relevant anymore or I don't recall what I might have been up to. Should be fine to ignore them all Thanks for checking in Eric On Tue,

Re: [Matlab-emacs-discuss] the filling patch and its problems

2023-07-31 Thread Eric Ludlam
bit better, but like I said, it needs a deeper heuristic. Maybe tweaking matlab-fill-fudge will help. I haven’t worked on this bit in a long time to remember how it all works. Eric From: Uwe Brauer Sent: Monday, July 31, 2023 11:57 AM To: Eric Ludlam Cc: Uwe Brauer ; Matlab-emacs-discuss

Re: [Matlab-emacs-discuss] the filling patch and its problems

2023-07-31 Thread Eric Ludlam
Hi Uwe, Here’s a revised patch that does a better job filling comments, and also fixes the indent region issue you found. Hope these work for you. Eric From: Uwe Brauer Sent: Tuesday, July 11, 2023 2:53 AM To: Eric Ludlam Cc: Matlab-emacs-discuss Subject: the filling patch and its problems

Re: [Matlab-emacs-discuss] the filling patch and its problems

2023-07-31 Thread Eric Ludlam
I saw an error indicated in your readme and tried it out. I pushed a fix that will improve that particular case. Eric From: Uwe Brauer Sent: Thursday, July 27, 2023 2:59 AM To: Eric Ludlam Cc: Uwe Brauer ; Matlab-emacs-discuss Subject: Re: the filling patch and its problems >>

Re: [Matlab-emacs-discuss] the filling patch and its problems

2023-07-31 Thread Eric Ludlam
isn't hard to create a line of code it can't fill, in which case it throws this error. Maybe a warning is better? Eric From: Uwe Brauer Sent: Monday, July 31, 2023 11:26 AM To: Eric Ludlam Cc: Uwe Brauer ; Matlab-emacs-discuss Subject: Re: the filling patch and its problems >&

Re: [Matlab-emacs-discuss] the filling patch and its problems

2023-07-31 Thread Eric Ludlam
, July 25, 2023 12:12 PM To: Eric Ludlam Cc: Uwe Brauer ; Matlab-emacs-discuss Subject: Re: the filling patch and its problems >>> "EL" == Eric Ludlam mailto:elud...@mathworks.com>> >>> writes: > The patch was based on the same rev that the previous patch

Re: [Matlab-emacs-discuss] the filling patch and its problems

2023-07-31 Thread Eric Ludlam
: Tuesday, July 25, 2023 5:11 AM To: Eric Ludlam Cc: Uwe Brauer ; Matlab-emacs-discuss Subject: Re: the filling patch and its problems >>> "EL" == Eric Ludlam mailto:elud...@mathworks.com>> >>> writes: > Hi Uwe, > Here’s a revised patch that does a bette

Re: [Matlab-emacs-discuss] the filling patch and its problems

2023-07-31 Thread Eric Ludlam
ock. I remember this going in where the request was to auto-fill comments, but stop auto-filling code since it often didn't do what was desired. Eric From: Uwe Brauer Sent: Thursday, July 27, 2023 11:46 AM To: Eric Ludlam Cc: Uwe Brauer ; Matlab-emacs-discuss Subject: Re: the filling pa

Re: [Matlab-emacs-discuss] [a mess of GPL versions]

2023-07-17 Thread Eric Ludlam
Yes, I have the updated filling bug info. Thanks. I have also noticed some filling bugs after my previous patch I would like to fix. Hoping to get to it soon. Eric On Fri, Jul 14, 2023, 3:51 AM Uwe Brauer wrote: > >>> "UB" == Uwe Brauer writes: > > >

Re: [Matlab-emacs-discuss] mlint not working, void variable

2022-08-08 Thread Eric Ludlam
Hi Nicholas, Sorry I missed this when it first came in. First, if you aren't already, try using the version of matlab-mode from git in case you happen to have an older version.  I happen to be on Emacs 27 which required some changes to mlint / linemark to work correctly with those versions of

Re: [Matlab-emacs-discuss] matlab-mode, electric-pair-mode and the single quote (')

2022-05-15 Thread Eric Ludlam
anges to matlab.el don't work for the first m-file opened, but on the second one (or kill and open the first) all the electric mods work as desired. Peter On Tue, Apr 26, 2022 at 4:10 PM Eric Ludlam wrote: Hi, yes - I meant `show-paren-mode'.  Not sure what I was thinking at t

Re: [Matlab-emacs-discuss] matlab-mode, electric-pair-mode and the single quote (')

2022-04-26 Thread Eric Ludlam
Hi, yes - I meant `show-paren-mode'. Not sure what I was thinking at the time. In the code for matlab.el, it is all about show-paren-* features it is extending. I poked around some more to see how to extend electric-pair-mode, and found the defcustom `electric-pair-inhibit-predicate'. I hacked t

Re: [Matlab-emacs-discuss] matlab-mode, electric-pair-mode and the single quote (')

2022-04-25 Thread Eric Ludlam
Hi Peter, MATLAB's use of ' char for strings is a bit tricky, because it has many meanings, such as: * 'this is a string' * 'in a string '' first quote is escape for second quote' * this is a transpose' I'm not sure when the electric pair mode does it's thing, but if it tries to pair up a

[Matlab-emacs-discuss] Character Counting

2021-10-23 Thread Eric Ludlam
Hi all, There is a "mini-hack" contest going on over on MATLAB Central which you can see here. https://www.mathworks.com/matlabcentral/contests/20th-anniversary-matlab-minihack.html The goal is to write a MATLAB script that is 280 chars or less that draws something neat. Attached find an Emacs

Re: [Matlab-emacs-discuss] [a problem in the branch: the return key]

2021-07-11 Thread Eric Ludlam
Sounds good. Thanks Uwe! On Sun, Jul 11, 2021 at 3:02 PM Uwe Brauer wrote: > >>> "EL" == Eric Ludlam writes: > > > Hi Uwe, > > I updated the NEWS file, and submitted the change to the hairyblocks > branch. > > Great I could then merge into mas

Re: [Matlab-emacs-discuss] [a problem in the branch: the return key]

2021-07-11 Thread Eric Ludlam
Hi Uwe, I updated the NEWS file, and submitted the change to the hairyblocks branch. Eric On Sun, Jun 20, 2021 at 11:27 AM Uwe Brauer wrote: > >>> "EL" == Eric Ludlam writes: > > > Hi Uwe, > > Yes, that makes sense. But also reminds me that way more

Re: [Matlab-emacs-discuss] matlab-shell-region->script behavior with local functions

2021-07-11 Thread Eric Ludlam
Hi Karthik and Uwe, Nice find. I think the first solution Karthik suggests of just copying over all local functions makes the most sense. Chasing down all the dependencies would be tricky. It might also make sense to check if there are any functions in the file, and improve the auto-selector fo

Re: [Matlab-emacs-discuss] [a problem in the branch: the return key] (was: add-change-log-entry-other-window for matlab files)

2021-06-20 Thread Eric Ludlam
l the check-in logs. I could work on that but it will be a day or two as I'm doing family stuff this week. Some of the summary of changes is in an email I put together a month or so ago, but not at the right detail level. Eric On Sun, Jun 20, 2021, 9:06 AM Uwe Brauer wrote: > >>&g

Re: [Matlab-emacs-discuss] add-change-log-entry-other-window for matlab files

2021-06-20 Thread Eric Ludlam
merge into the main branch whenever you are ready for it. Eric On 6/20/21 2:46 AM, Uwe Brauer wrote: "EL" == Eric Ludlam writes: Hi Eric, Thanks for he quick reply Hiya, matlab-mode has defined `add-log-current-defun-function' for a long time. You are right, I did not t

Re: [Matlab-emacs-discuss] add-change-log-entry-other-window for matlab files

2021-06-19 Thread Eric Ludlam
Hiya, matlab-mode has defined `add-log-current-defun-function' for a long time. I'm using the hairyblocks branch, and tried the below command and it added the function name of a nested function to the record similar to below. While the implementation of add-log-current-defun-function has chan

[Matlab-emacs-discuss] Revised indentation engine available for matlab-mode

2021-05-04 Thread Eric Ludlam
Hi all, John C and I had been working on a revised indentation engine for matlab-mode back in March. After a month of testing (which John has been working on) we think is ready for more general testing and integration into the mainline. The new engine fixes a wide range of bugs and includes mass

Re: [Matlab-emacs-discuss] emacsrunregion from a tramp opened file

2021-05-04 Thread Eric Ludlam
Hi, Thanks Julien for the patch. The nature of this patch seems good to me. The workflow of Emacs and MATLAB on different machines is an interesting one, and it is nice that it can be made to work in such a simple way! Eric On Mon, May 3, 2021 at 12:06 PM Uwe Brauer wrote: > >>> "JCvM" == Ju

[Matlab-emacs-discuss] New indentation fixes for classdef and argument blocks

2021-03-02 Thread Eric Ludlam
Hi all, There is a new branch in the matlab-emacs git called "hairyblocks". This branch deals with some special cases around the "arguments" "properties" "events" and "methods" blocks. In particular, these keywords can all be used as variables also, so extra levels of validation are needed.

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

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] 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-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
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)

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] [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-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] 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-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] 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-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] 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-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] 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] 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] 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] 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

[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] 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.

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-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] 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] 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

[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] 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,

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] 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] 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] 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] 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] 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] 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] 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] 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-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-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] 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-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] 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] 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] 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] 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] 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-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] 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] 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-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-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-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] 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] 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] 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] [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] [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-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] 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] 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] 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] 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] 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] 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] 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-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] 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] 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] 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] 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-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.

  1   2   >