Commit graph

20 commits

Author SHA1 Message Date
Eric Ludlam
174f749e1f matlab-scan.el:
New algorithms for scanning MATLAB files for context.
matlab.el:
(matlab-mode-leave): Disable scanner in this buffer.
(matlab-mode): Enable scanner in this buffer.
(matlab-calculate-indentation-1):
Use `matlab-compute-line-context'.  Use output for comment detection.
Move block comment stuff first to maintain consistency with old behavior.

Project.ede, Makefile: Add matlab-scan.el
2021-03-10 19:57:23 -05:00
Eric Ludlam
f0457f228b matlab.el:
Delete large swaths of code related to syntax tables which
has moved to matlab-syntax.el.
(matlab-syntax): New require.
(matlab-mode-syntax-table, matlab-mode-special-syntax-table):
Moved to matlab-syntax.el
(matlab-font-lock-string-start-regexp)
(matlab-font-lock-string-and-comment-start-regexp)
(matlab-test-allstring-comment-match)
(matlab-font-lock-allstring-comment-match-normal):
No longer needed.  Deleted.
(matlab-font-lock-extend-region):
Switch to use matlab-block-comment-bounds.
(matlab-block-comment-*-re, matlab-ltype-block-comment-*):
Moved to matlab-syntax.el
(matlab-basic-font-lock-keywords):
Delete comment and string highlighting.
(matlab-basic-file-font-lock-keywords):
Delete block comment highlighting.
(matlab-mode): Delete all code related to syntax stuff.
Add call to `matlab-syntax-setup'.
Remove `after-change-functions' - no longer needed to handle block comments.
Enable syntax table font-locking comments/strings.
Remove special forward-sexp-function.
(matlab-navigation-syntax, matlab-up-list):
Moved to matlab-syntax.el
(matlab-with-current-command): Extend restricted region 1 char
past eol to include newline - needed for end-of-comment.
(matlab-backward-up-string-or-comment): Fix ellipsis spelling.
Only backup 1 char, reverse scan goes to beginning, not end of ...
(matlab-move-list-sexp-internal)
(matlab-move-simple-sexp-backward-internal)
(matlab-move-simple-sexp-internal)
Deleted.
(matlab-backward-sexp, matlab-forward-sexp)
(matlab-beginning-of-command, matlab-ltype-comm)
(matlab-debug-block-comm)
(matlab-electric-block-comment)
(matlab-show-paren-or-block)
(matlab-mode-vf-block-matches-forward):
Rename matlab-ltype-block-comm to matlab-block-comment-bounds.
(matlab-ltype-block-comm-bounds, matlab-ltype-block-comm-lastcompute)
(matlab-change-funtion, matlab-ltype-block-comm, matlab-ltype-block-comm-1):
Deleted.
(matlab-ltype-block-comm-at-*)
(matlab-cursor-comment-string-context)
(matlab-cursor-in-string-or-comment)
(matlab-cursor-in-comment)
(matlab-cursor-in-string):
Moved to matlab-syntax.el
(matlab-calculate-indentation-1):
Replace old block comment stuff with new `matlab-block-comment-bounds'.
Stop using old cache, just compute bounds once and use it.

tests/mtest.el:
Rename matlab-ltype-block-comm to matlab-block-comment-bounds.
Fix spelling of ellipsis
Add a little more debugging output.

Makefile, Project.ede:
Add matlab-syntax.el

tests/stringtest.m:
Add some blank lines to protect against indentation.
Fix indentation.
2021-03-07 00:14:21 -05:00
Eric Ludlam
088a2a8181 Makefile
Add tests to dist.
2019-12-14 10:38:33 -05:00
Eric Ludlam
7ff56a8246 matlab-shell-gud.el:
New, content copied from matlab-shell, includes
all the GUD specific support, including the process filter.

Makefile, Project.ede:
Include matlab-shell-gud.el
2019-11-28 18:14:25 -05:00
Eric Ludlam
7ae6b90f11 Makefile, Project.ede:
Add matlab-maint.el
2019-11-27 14:30:31 -05:00
Eric Ludlam
a095190420 Project.ede, Makefile:
Add matlab-netshell.el.
2019-11-20 21:55:16 -05:00
Eric Ludlam
097842df83 Makefile, Project.ede:
Add matlab-compat.el.
2019-11-16 15:52:57 -05:00
Eric Ludlam
af8e183cdf Remove all code gen / insertion stuff into matlab-cgen.el.
Move tempo tags var into matlab-cgen, along with all related keymaps.
In matlab-cgen, define the keymap as autoload so things load and
run seamlessly.
On cgen load, run hook on all matlab buffers.
2019-11-10 08:43:26 -05:00
Eric Ludlam
3fe52b0915 Makefile, */Makefile: Update version numbers.
toolbox/Makefile, toolbox/Project.ede: Add dbhotlink.m.
matlab.el: Clean up compiler warnings.
2019-11-09 22:07:52 -05:00
Eric Ludlam
9eaf9e7752 Overview:
Move large chunks of matlab.el to matlab-complete.el,
matlab-shell.el, and matlab-topic.el.
Update existing .el files to require new files as needed.
Update Makefiles to no longer have Makefile check.

matlab.el: Settings updates:
(matlab-mode-version): Update to 4.0 (based on expectations of this change.)
(matlab-functions-have-end): set to t.  Fix doc.
(matlab-functions-have-end-p): If guess, then guess, otherwise
base it on matlab-functions-have-end.
(matlab-fill-code): set to nil.
(matlab-keyword-list, matlab-block-end-pre-if): remove endfunction
(matlab-calculate-indentation): remove matlab-ltype-endfunction-comm.

matlab.el: code moving
(matlab-frame-init): moved earlier near keymaps.
2019-11-08 20:49:50 -05:00
John Ciolfi
426cb17766 Makefile: Updated byte compile to work on Emacs 25, other minor cleanups. 2017-12-24 10:41:44 -05:00
John Ciolfi
239c0d67e3 Revamp README.org, allow emacsclient customization
* README.org: Revamp help. Remove stale items.
* matlab.el, emacsinit.m: make matlab-shell-emacsclient-command
  customizable so people can easily tailor the ">> edit file.m" behavior.
2017-12-05 20:52:11 -05:00
John Ciolfi
be1b68bd03 fix tab completiong, m-file debugging, and emacs warnings
See ChangeLog for details.
2017-12-05 14:08:53 -05:00
zappo
368a222cd2 (cedet_LISP): Add srecode-matlab.el 2014-12-27 12:41:28 +00:00
zappo
3ba3ebd644 (VERSION) Updated.
(all, tags, dist): Add toolbox
(toolbox): New rule
2014-11-05 18:35:25 +00:00
zappo
738e57c54f Regenerated
Added CEDET_PATH variable if someone wants to download the latest from bzr.
2013-04-02 00:52:56 +00:00
zappo
e3e24444ed Regenerated from Project files. 2009-07-06 20:31:15 +00:00
zappo
4c5ae61fca (LOADPATH): Add semantic/bovine 2008-09-05 12:53:04 +00:00
zappo
55a022991a (LOADPATH): Now includes semantic.
(cedet_LISP): New veriables.
(cedet): New target.
(dist): Add the cedet support files.
2008-09-05 12:47:03 +00:00
zappo
f8c00e7852 Build system. 2005-12-02 18:31:16 +00:00