From: Norberto D. <nor...@gm...> - 2014-07-03 23:35:21
|
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 <Eri...@ma...> 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:nor...@gm...] > *Sent:* Thursday, July 03, 2014 12:23 PM > *To:* mat...@li... > *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! > |