I just finished the edits and pushed them.
1. I've defined a 'matlab-cell-shell-run-cell' function in
matlab-cell.el which basically calls 'matlab-shell-run-region' from
matlab-shell.el with the appropriate bounds of the current point.
2. I also simplified the cellbreak regexp to: (rx line-start (* space)
(group "%%" (* (not (any "\n"))) line-end))
This evaluates to: "^[[:space:]]*\\(%%.*$\\)"
As mentioned before, I've removed the requirement of having a
blank-space character after "%%" since I think this is more intuitive.
3. I also refreshed 'matlab-load.el'.
Best,
Nidish
On 5/15/24 13:58, Uwe Brauer wrote:
Yes this is true. This seems to be a restriction from
matlab-shell-run-cell. I guess I'll just write a
matlab-cell-shell-run-cell function that's more neatly integrated
within the matlab-cell minor-mode.
I remember of having discussions with Eric, when that feature was
implemented, but alas I don't recall any details.
The real restriction with matlab-cell is that I'm assuming that the
cell header is "%%" followed by at least a space character - if
there's no character right after the "%%", then this is not recognized
as a cell header. This comes from the matlab-cell-cellbreak-regexp
variable (which can be customized, of course).
But that seems fine to me, because that is (or at least was till
recently) the convention of the native matlab editor.
I will change it to default to not requiring the space character after
the "%%" since this makes more sense.
I've added the list of navigation functions to the docstring.
I'll try to have the above edits done by then!
Thanks, I just saw it. More testing, later
Thanks
Uwe
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss