From: Eric L. <Eri...@ma...> - 2010-12-14 15:15:18
|
Hi, The TAB key is hooked up to send those messages to MATLAB to get the list of completions. It works by putting the process filter (that Emacs uses to interpret process output) into a mode that waits for the next prompt, and collects all the output into a string which Emacs then processes to create a completion buffer. It appears to not work for you today. ;) I tried using the latest version of matlab-shell from CVS and completion worked for me. I tried hitting C-g in a couple spots to see if I could mess it up, but it worked like a champ. To debug, you will probably need to look at matlab-shell-collect-command-output. If it throws an error part-way through, the output you see would be easily explained. Eric -----Original Message----- From: Christopher Garay [mailto:cg...@bu...] Sent: Monday, December 13, 2010 5:56 PM To: mat...@li... Subject: [Matlab-emacs-discuss] matlab-emacs tab-completion problem Hi everyone, I'm currently using Emacs 23.1.1 with Matlab R2010b with the latest matlab-emacs. When trying to use tab completion, I'm seeing some output on the screen that appear to be commands for the Matlab MCR. For example, when I type ls into the Matlab shell in Emacs, then hit tab I see the following: >> matlabMCRprocess = com.mathworks.jmi.MatlabMCR matlabMCRprocess = com.mathworks.jmi.MatlabMCR@1acfa31 >> matlabMCRprocess.mtFindAllTabCompletions('ls'), clear('matlabMCRprocess'); ans = java.lang.String[]: 'ls' 'lscan' 'lscftsh' 'lscov' 'lsf2poly' 'lsim' 'lsiminfo' 'lsline' 'lsqcurvefit' 'lsqfcnchk' 'lsqlin' 'lsqncommon' 'lsqnonlin' 'lsqnonneg' 'lsqnsetup' 'lsqr' Does anybody have a solution for this? Thanks, Chris ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Matlab-emacs-discuss mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |