From: Eric L. <Eri...@ma...> - 2014-07-03 19:41:45
|
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! |