Hi Nor,
The MATLAB path is the current directory, or whatever is in your current MATLAB
Path. Only MATLAB knows what that is, though you could rig something up to
mimic that all in Emacs.
Since the current working directory is on the path, if you want to pull
completions from a MATLAB process, you need to CD matlab to that location, and
probably CD back when you are done getting completions. That hasn’t been
implemented. There is also just pulling completions for use by autocomplete.
Right now getting those completions is only implemented in the TAB keybinding
for matlab shell. Someone would need to refactor the matlab-shell code to
make a handy utility.
As far as setting up an ac-sources, I’m not sure what that means. If you
wanted to make a variable full of all the paths on MATLAB’s path by default,
that is certainly a straightforward thing to do. It is easy to ask MATLAB for
its current path. I just don’t know enough about autocomplete to help make
that happen.
Eric
From: Norberto Degara [mailto:norberto.deg...@gmail.com]
Sent: Thursday, July 03, 2014 7:35 PM
To: Eric Ludlam
Cc: matlab-emacs-discuss@lists.sourceforge.net
Subject: Re: [Matlab-emacs-discuss] Tab-completion (auto-complete) in
matlab-mode, not in M-shell
Hi Eric,
Thanks for your quick reply. I guess what you mean is that there is no
"matlab-sources" that can be added to ac-sources so as I can get aoutocomplete
suggestions in matlab-mode, right?
I am looking for competitions in matlab-mode. I would like to get the same
behavior of M-shell in matlab-mode. When I type "ff" and I hit TAB twice in
M-shell I get a competition list suggestion with "fft fft2 etc". However, when
I type "ff" and hit TAB while editing an .m file in matlab-mode, I don't get
any suggestion. Is there anyway to get competition suggestions in matlab-mode
when editing an .m file or this feature is not implemented?
A way around would be to use autocomplete. Is there any matlab-source to be
added to ac-sources to get autocompletition or this is what you say nobody has
written a backend for this?
Using the right emacs terms is a little bit hard since I am a beginner :)
Thanks a lot!
Nor
On Thu, Jul 3, 2014 at 9:41 PM, Eric Ludlam
<eric.lud...@mathworks.com<mailto:eric.lud...@mathworks.com>> wrote:
Hi Norberto,
There is OK CEDET support for MATLAB on the sourceforge site, but it isn’t very
broad. As such, you should be able to setup autocomplete and CEDET for MATLAB
the same as C or some of the other supported languages. If you also want
MATLAB shell based completions, no one has tried to link those two things
together.
To use auto-complete with M-shell, someone would need to write an auto-complete
backend that just calls to the same routine that TAB in M-shell uses. I’ve
never created a backend for that, but on the MATLAB shell side you can use `
matlab-shell-completion-list’ to get completions from a string, or copy out
chunks of ` matlab-shell-tab’ to get the current text from the shell buffer.
Eric
From: Norberto Degara
[mailto:norberto.deg...@gmail.com<mailto:norberto.deg...@gmail.com>]
Sent: Thursday, July 03, 2014 12:23 PM
To:
matlab-emacs-discuss@lists.sourceforge.net<mailto:matlab-emacs-discuss@lists.sourceforge.net>
Subject: [Matlab-emacs-discuss] Tab-completion (auto-complete) in matlab-mode,
not in M-shell
Hi all,
I'm new to the use of matlab+emacs. I've configured my .emacs so as I'm able to
get tab competition in M-shell. However, I'd like to have auto-complete to work
together with cedet semantic to get competition suggestions when editing my .m
files in matlab-mode (not in M-shell mode).
How do I tell autocomplete to use Matlab sources? Is this possible?
Also, I would like to keep the default mode of auto-completition in M-shell.
That is, a pop-up window and a yellow win help information instead of having a
separate mini-buffer when hitting twice tab. Any ideas/suggestions?
Thanks!
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss