Commit graph

185 commits

Author SHA1 Message Date
Eric Ludlam
9d3803e3d5 Add matlab-show-paren-or-block, an implementation for show-paren-mode.
Correctly highlights parens even when there are other parens in strings and comments.
In mode, init paren-mode with this fcn.  Disable older block highlighter.
2019-09-28 22:32:23 -04:00
Eric Ludlam
6a06906b2d Add tests to check sexp navigation with expressions.m, and new functions in metest.el.
Update strings.m to include strings with parens and brackets in them, also in cell arrays.
2019-09-26 21:42:55 -04:00
Eric Ludlam
ff70f3e933 Font-lock funtion for strings and comments - Add elipsis to the list of matchable things.
Remove elipsis highliter from gaudy font lock elements.
Add matlab-up-string-or-comment, and matlab-backward-up-string-or-comment.
Add matlab-move-list-sexp-internal for navigating lists
Add matlab-move-simple-sexp-internal for navigating simple sexp expressions like comments, strings, and lists.
Update matlab-backward-sexp and matlab-forward-sexp replace emacs sexp navigation with above simple-sexp naviation functions.
Update matlb-cursor-comment-string-context to also return bounds to be used for navigating strings and comments.
2019-09-26 21:41:30 -04:00
Eric Ludlam
e8776961b3 Instrument with test cookies for metest.el to search for. 2019-09-23 21:51:58 -04:00
Eric Ludlam
8193333f37 Simple bash script for running matlab-emacs tests in batch mode. 2019-09-23 21:50:28 -04:00
Eric Ludlam
83a7a4a8f4 Matlab emacs test suite.
Start with strings test.
2019-09-23 21:50:04 -04:00
Eric Ludlam
d2eadb289c Change font-locking for NaT to have correct case.
Update matlab-cursor-comment-string-context to also return elipsis if cursor after an elipsis.
2019-09-23 21:48:58 -04:00
Eric Ludlam
d2cf209b54 Remove some more left over comments. 2019-09-18 23:12:14 -04:00
Eric Ludlam
2f047c34b7 cleanup some leftover comments 2019-09-18 23:11:19 -04:00
Eric Ludlam
9664fb88ea Complete re-write of charvec/string highlighting support.
Regex version had too many mismatch conditions that could go subtly wrong.
New version philosophy:
* A single font-locker for comment, charvec, and comments.
* After matching a start for one of the above, identify the end
  location, custom for each type.
This prevents interaction between multiple font lock matchers.
For predicates like matlab-cursor-in-comment, same idea to avoid same problem.
* add a new fcn 'matlab-cursor-comment-string-context' which starts at
  beginning of line, and scans to point, identifying where the cursor
  is in.
* all predicates now use this new fcn.
Also, fix elipsis as comment highlighter.
2019-09-18 23:05:56 -04:00
Eric Ludlam
350f063933 Add elipsis as comment char highlighter test. 2019-09-18 23:01:33 -04:00
Eric Ludlam
8f4defe946 Added several test points from John Ciolfi for various string/char combinations. 2019-09-18 20:11:27 -04:00
Eric Ludlam
f0d3cae35a Starter test file for strings. 2019-09-18 20:04:59 -04:00
Eric Ludlam
baa2270928 Add support for "strings" in addition to 'char vectors'.
Undo previous attempt at supporting strings.
Strategy: Have two sets of font lock functions, one for char vectors, and one for strings.
the "in a string" functions will check for both.
Added ' as an operator when it is placed as a transpose.
2019-09-18 20:04:00 -04:00
Uwe Brauer
3fbca4259b Add support for Strings in matlab mode (thanks to Eric Ludlam)
* matlab.el (matlab-string-start-regexp): Patch provided by Eric
Ludlam: adds support for Strings in matlab-mode. b = "string
scalar" and b = "string "" scalar" are now highlighted.
2018-09-28 17:26:26 +02:00
John Ciolfi
50266ff812 Allow completion within a line and better quit support. 2018-01-25 13:10:25 -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
d2c958b9f8 README.org: remove LocalWords 2017-12-05 21:09:22 -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
Uwe Brauer
3b3c48ac0c * tlc.el: Add space to
;;;###autoload(add-to-list 'auto-mode-alist '("\\.tlc$" .tlc-mode))
                                                                 ^^^
thanks to John Ciolfi
2016-09-02 11:59:06 +00:00
Uwe Brauer
32a69776d1 Patch for improved indent behaviour, using calls to 'current-column'. 2016-08-15 07:50:23 +00:00
Uwe Brauer
64f2a5635f Applied patch and changed version, to 3.3.6 2016-05-27 20:52:59 +00:00
Uwe Brauer
bd56554ad0 Apply patch by Thibault Marin <thibault.marin.us@ieee.org>. The patch
adds an option to matlab.el to align continuation lines after opening
parentheses with a single indent instead of aligning to the open
parenthesis.
2016-05-27 20:51:55 +00:00
Uwe Brauer
4e052dea36 Rename matlab-pkg.el matlab-mode-pkg.el for MELPA 2016-04-16 07:34:29 +00:00
Uwe Brauer
a5937eb8dc * matlab-pkg.el ("matlab-mode"): New file for the MELPA repo:
purpose: add information to the GNU Emacs package system. User of
older GNU Emacs versions <24, and Xemacs users can safely ignore
this file.
2016-04-15 20:09:24 +00:00
Uwe Brauer
865c0b8b6d * matlab.el: Add an empty line after the first line in matlab.el,
maybe this will generate the desired info line when calling
package-list-package in GNU emacs. (MELPA).
2016-04-10 17:18:28 +00:00
Uwe Brauer
a513050994 * matlab.el (matlab-enable-block-highlighting): Applied patch
provided by
kaushal_modi@users.sf.net

* matlab.el (matlab-mode-version): change version to 3.3.5
2016-04-01 08:08:07 +00:00
Uwe Brauer
596e8c3d1a Merge pull request #1 from dlebrecht/patch-1
added codeblocks
2016-03-21 13:29:57 +00:00
dlebrecht
08f78660e5 added codeblocks 2016-03-19 00:24:09 +01:00
Uwe Brauer
c164c917f0 modify Changelog 2016-03-17 08:17:13 +00:00
Uwe Brauer
6361a95f6a 2016-03-17 Uwe Brauer <oub@mat.ucm.es>
* toolbox/dbhotlink.m (dbhotlink): new file
	* matlab.el (matlab-shell-mode): Applied patch from  Odd Andersen
	<odd.andersen@gmail.com>.
2016-03-17 08:16:35 +00:00
Uwe Brauer
3cfde5b11b * dl_emacs_support.m (getfiles): update the url and README-->README.org 2016-03-16 14:04:58 +00:00
Uwe Brauer
f7da0a54e9 Add section: Known problems 2016-03-16 13:50:17 +00:00
Uwe Brauer
6ed6d88175 Add MELPA, change from CVS to git 2016-03-12 19:04:27 +00:00
Uwe Brauer
afa51b900a Change the markup of the README file to use org mode (markdown would be an alternative 2016-03-12 18:04:45 +00:00
Uwe Brauer
e08bf6d49b Converted from CVS to git, applied patches, see ChangeLog 2016-02-10 10:51:59 +00:00
Uwe Brauer
3030994ffa *** empty log message *** 2016-02-10 10:27:23 +00:00
zappo
8a6512388f Regenerate to include srecode-matlab.el 2014-12-27 12:44:52 +00:00
zappo
53e562d56e (cedet): Add srecode-matlab.el 2014-12-27 12:41:48 +00:00
zappo
368a222cd2 (cedet_LISP): Add srecode-matlab.el 2014-12-27 12:41:28 +00:00
zappo
bad73897c8 (cedetFiles): Add srecode-matlab.el 2014-12-27 12:38:13 +00:00
zappo
cdcef1ae37 (empty): Insert file if FILE_FUNCTION is open, or a classdef if FILE_CLASS is
open.
(classdef): Get user and time to add to comment.
2014-12-27 12:36:13 +00:00
zappo
203fa9350b (matlab-mode-verify-fix-functions): Add matlab-mode-vf-classname.
(matlab-match-classdef-re): New.
(matlab-mode-vf-functionname): buffer substring no properties.
(matlab-mode-vf-classname): New.
2014-12-27 12:27:12 +00:00
zappo
c9ef38202b New file to handle srecode :matlab argument. 2014-12-27 12:23:35 +00:00
zappo
9057fd65f2 2014-11-14 16:47:10 +00:00
zappo
410eb78927 Update links. 2014-11-13 21:31:56 +00:00
zappo
99ea0fc8ee Update download order of project / make files so a call to make will work.
update doc about calling "make".
2014-11-13 21:27:34 +00:00
zappo
5bc4c8eef7 Pull dl_emacs_support from support files, and make custom call to it instead.
Add doc to download the latest download script first.
2014-11-13 21:24:38 +00:00
zappo
144ce53ac2 Add emacsdocomplete, and some Makefile/Project files. 2014-11-13 21:18:16 +00:00