Commit Graph

32 Commits

Author SHA1 Message Date
Uwe Brauer 9c03ebf876 Update to GPL3+ (see the ChangeLog file for details, files in test directory left out)
* cedet-matlab.el: update to GPL3+

* company-matlab-shell.el: ditto

* company-matlab-shell.el: ditto

* dl_emacs_support.m: ditto

* linemark.el: ditto

* matlab-publish.el: ditto

* semanticdb-matlab.el: ditto

* semantic-matlab.el: Ditto

* matlab.el: ditto

* mlint.el: Ditto
2023-07-12 18:55:41 +02:00
Eric Ludlam 9e50d4ab90 matlab-scan.el:
(matlab--scan-block-backward-up-until): New

matlab.el:
(matlab-find-unreachable-code): Delete
(matlab-file-basic-font-lock-keywords): No more unreachable code.
(matlab-forward-sexp): Remove INCLUDEELSE input.
Remove usage from everywhere else.
(matlab-beginning-of-enclosing-defun): DELETE.
(matlab-beginning-of-defun, matlab-end-of-defun):
Use new block scanner for impl.
(matlab-calculate-indentation-1): Use new block scanner
for finding defun.
(matlab-hideshow-*): Deleted - it was never finished.

matlab-semantic.el:
Update to new matlab-forward-sexp inputs.
2021-03-20 17:20:18 -04:00
Eric Ludlam fdadaa0cdb matlab.el, mlint.el, semantic-matlab.el,
tlc.el, linemark.el, company-matlab-shell.el:
Update Copyrights:
* Fix date ranges to be more reliable.
* Remove MathWorks as copyright holder.
2020-02-08 21:43:34 -05:00
Eric Ludlam fb19b6bcc1 cedet-matlab.el, matlab-cgen.el, matlab-compat.el,
matlab-complete.el, matlab-maint.el, matlab-netshell.el,
matlab-publish.el, matlab-topic.el, semantic-matlab.el,
semanticdb-matlab.el, srecode-matlab.el:
Fix varous issues in doc strings and messages identified by `checkdoc'
command.
2019-12-12 22:36:55 -05:00
Eric Ludlam 059b520930 semantic-matlab.el:
(semantic-matlab-dependency-system-include-path):
Fix logic computing the include path to use root dir, but not
put things on the path that don't exist.
semanticdb-matlab.el:
require matlab-shell.
(semanticdb-matlab-cache-files):
Stop using old style classes fcn.
2019-11-17 16:34:17 -05:00
Eric Ludlam 0edda7ad1f matlab-compat.el:
(matlab-set-keymap-parent): New shim fcn.
(matlab-find-executible-directory): New fcn.
matlab-shell.el:
Use matlab-compat.el.
Always require comint, as this file won't load unless someone
is trying to create a shell.
(matlab-shell-font-lock-keywords): Refresh
to highlight startup text again.
(matlab-mode-determine-matlabroot): New.
(matlab-mode-install-path): Use above.
(matlab-mode-determine-mfile-path): Delete.
(matlab-shell-mode-map): Create during declaration,
including the menus.
(matlab-shell-mode): Don't make menu (see above)
(matlab-shell): Don't make keymap (see above)
semantic-matlab.el:
(semantic-matlab-root-directory): delete
(semantic-matlab-root-directory): Use
matlab-mode-determine-matlabroot instead of above.
2019-11-16 15:59:56 -05:00
Eric Ludlam 5ce3ad95db Merge branch 'modernize' of ssh://git.code.sf.net/p/matlab-emacs/src into modernize 2019-11-13 22:20:22 -05:00
Eric Ludlam 36c17d9e57 matlab-semantic.el:
New fcns needed by matlab-shell.el
(matlab-semantic-get-local-functions-for-script):
New.  Returns fcns from a buffer.  Works if semantic isn't enabled.
(matlab-semantic-tag-text): get text part of input TAG.
(semantic-default-matlab-setup): Add 'type tag class to list
of misc things, since we support them now.
matlab-shell.el:
(matlab-shell-extract-region-to-tmp-file): Use new fcns above.
Fix compiler warnings.
2019-11-13 22:15:08 -05:00
Eric Ludlam 94748c221c semantic-matlab.el:
(semantic-matlab-parse-oldstyle-class)
(semantic-matlab-find-oldstyle-classes): Comment out.
Need to delete later.
(semantic-matlab-parse-region): Stop using above.
2019-11-13 09:15:00 -05:00
Eric Ludlam 1734085cbc Fix bug in semantic-matlab-parse-functions - it needs to take limit input. 2019-11-12 23:09:28 -05:00
Eric Ludlam 18a2314b2f semantic-matlab.el:
Add support for parsing superclasses and storing in tag.
Add a test for that.
2019-11-09 10:24:43 -05:00
Eric Ludlam abaadab8a7 semantic-matlab.el:
Add support for method attributes (protection).
Add test.
2019-11-09 10:16:18 -05:00
Eric Ludlam bc26e2f978 semantic-matlab.el:
Class parsing - add support for property blocks and creating tags
for the properties, including analysis of 'access' attribute.
Add tests for this.
2019-11-09 08:57:23 -05:00
Eric Ludlam 64f2249b1e Add support for parsing MATLAB Classes to semantic-matlab.el
Add test file (mplass.m) and add parsing testing to metest.el.
2019-11-08 23:34:40 -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 be1b68bd03 fix tab completiong, m-file debugging, and emacs warnings
See ChangeLog for details.
2017-12-05 14:08:53 -05:00
zappo b3997407a0 (semantic/dep): New dependency (Emacs 24)
(semantic-matlab-parse-oldstyle-class): Add 'method' local var to tidy
compile warnings.
2013-08-29 01:42:12 +00:00
zappo 354f1b3c02 (misc require statements): Updated to work w/ CEDET integrated w/ Emacs. 2013-04-02 00:47:02 +00:00
zappo 564db2c9e0 Remove automatic init hook. See cedet-matlab.el 2009-07-06 19:49:09 +00:00
davenar 30abe2f957 (semantic-ctxt-current-symbol)
(semantic-ctxt-current-symbol-and-bounds): Return nil when no symbol
at point.
2008-09-08 14:40:56 +00:00
davenar 177ca900af (semantic-matlab-parse-assignments): Deal with class methods which
return same class and be more tolerant with whitespaces.
2008-09-08 11:59:18 +00:00
davenar adc45011db (semantic-matlab-parse-assignments): Fix bug in parsing limit. Don't parse
current line.  Deal with class attribute assignments.
2008-09-08 11:07:23 +00:00
davenar daf895f034 (semantic-matlab-parse-oldstyle-class)
(semantic-matlab-find-oldstyle-classes): New functions.
(semantic-matlab-parse-region): Cache files.  Use new functions for
parsing classes.
(semantic-matlab-type-hint-string): New variable.
(semantic-matlab-parse-assignments): New function.
(semantic-get-local-variables): New override.
(semantic-ia-insert-tag): Deal with method completions.
(semantic-ctxt-current-symbol)
(semantic-ctxt-current-symbol-and-bounds): New overrides.
2008-09-07 16:28:39 +00:00
davenar 4883b9596a (semantic-matlab-root-directory): Follow symlink. 2008-09-07 15:11:51 +00:00
zappo 8d900aff24 (semantic-matlab-root-directory): New Function.
(semantic-matlab-function-tags): Update to use above.
2008-09-05 20:18:00 +00:00
davenar 225057c4ff (semantic-idle-summary-function): Use defvar-mode-local instead of
make-local-variable.
2008-09-01 20:14:31 +00:00
davenar d53b415c39 (semantic-format-tag-prototype): New overload for matlab-mode.
(semantic-idle-summary-format-matlab-mode): New function, also
displays doc-string.
(semantic-ia-insert-tag): Use it.
(semantic-default-matlab-setup): Bind `semantic-idle-summary-function'.
2008-08-31 21:44:25 +00:00
davenar 6ae665a59b Unconditional require of semanticdb-matlab.
(semantic-matlab-function-tags): Better parsing of doc strings.
Return flag for builtin functions.
(semantic-matlab-sort-raw-tags): Include new :builtin attribute.
2008-08-31 17:49:08 +00:00
davenar eb7a9a2dd3 (semantic-matlab-system-paths-include): New variable.
(semantic-matlab-dependency-system-include-path): Use it.
(semantic-matlab-root-directory): Take everything until '/bin' as
MATLAB root.
2008-08-30 14:29:40 +00:00
zappo b3c2d36d8f (semantic-matlab-dependency-system-include-path): Value should be a list. 2008-08-22 18:57:33 +00:00
zappo 7b56dd2daa Changes contributed by: David Engster
(semanticdb-matlab): Conditional load.
(semeantic-matlb-root-directory): New variable
(semantic-matlab-match-function-re): Support _
(semantic-matlab-function-tags): Support loading doc strings.
(semantic-matlab-sort-raw-tags): Support doc strings.
(semantic-matlab-dependency-system-include-path)
(semantic-matlab-display-docstring): New variables
(semantic-ia-insert-tag): New overload function.
2008-08-22 18:22:31 +00:00
zappo 5d74077863 Copied from cedet repository. 2008-05-19 19:24:04 +00:00