From: Eric L. <Eri...@ma...> - 2013-01-15 21:50:00
|
Hi Shiquan, Your best bet is to edit matlab.el, and remove the key-binding to matlab-complete-symbol, or you can write some code after matlab.el is loaded to remove the keybinding from matlab-mode-map. Once you do that, it won’t get in the way of the M-TAB keybinding anymore. I’m not familiar with using auto-complete & semantic, or why it might not work with matlab mode. It may be that ac-source-semantic depends on tags that are very similar to those from C or Java, and the matlab tags might be a little different. We’d have to figure out what the difference is. Eric From: Shiquan Wang [mailto:shi...@gm...] Sent: Friday, January 11, 2013 2:07 AM To: mat...@li... Subject: [Matlab-emacs-discuss] How to disable auto completion in matlab.el Hi, I want to use auto-complete for matlab-mode. Two ways can achieve this: 1. Extract matlab-complete-symbol from matlab.el as the candidates in auto-complete source, described in uhiaha888's blog<http://d.hatena.ne.jp/uhiaha888/20100815/1281888552>. 2. Use ac-source-semantic, ac-source-semantic-raw in auto-complete-config.el. Several drawbacks I find and don't know how to solve so I post this message: 1. ac-source-semantic seems not working, it's very similar to ac-source-semantic-raw 2. completion from matlab.el is blocking auto-complete showing candidates, I have to use M-x auto-complete to trigger the candidates drop-down list. So how to deal with the two issues. Best, Shiquan -- 王时全 Shiquan Wang ************************************************************************************** National Laboratory of Pattern Recognition (NLPR) Institute of Automation, Chinese Academy of Sciences(CASIA) No.95 ZhongGuanCun East Road, HaiDian District, Beijing, China, 100190 Tel: +86-10-62653768 Fax: +86-10-62551993 Email: sq...@nl...<mailto:sq...@nl...> / shi...@gm...<mailto:shi...@gm...> Homepage: http://www.cbsr.ia.ac.cn/users/sqwang/ ************************************************************************************** |