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>
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]
> *Sent:* Thursday, July 03, 2014 12:23 PM
> *To:* 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