From: <xa...@gm...> - 2012-06-20 22:14:52
|
Thanks for your help Eric, Here's how I got it working for osx lion. (for posterity?) 1) use emacs 24.1 from http://emacsformacosx.com/builds (i had been using a version I built with cocoa support from brew) 2) cedet 1.1 is what you want, I have no idea what's in 24.1 or how to figure that out, but I had to download cedet-1.1.tar.gz, extract it and add the following to my .emacs (load-file "~/.emacs.d/site-lisp-backup/cedet-1.1/common/cedet.el") 3) there seemed to be some conflicts with the color-theme I was using, I removed the color-theme settings, and that fixed the broken customization group: (MATLAB menu -> Configuration). Also fixed the tab completion breaking. I had the euophoria color-theme version 6.6.0. Thanks for pointing me in the right direction. I was also able to compile both cedet and matlab-emacs per their instructions. Sandy On Wed, Jun 20, 2012 at 3:44 PM, Eric Ludlam <Eri...@ma...> wrote: > Hi, > > I'm not sure about the bug with custom mode. That just looks like an important face is missing. Did you override (or have old versions of) custom or widget libraries? > > For CEDET setup, if you use the version of CEDET that comes with Emacs, the matlab setup hasn't been updated to use that yet. There are dependencies on features in CEDET 1.1 which uses different file names. When CEDET 1.1 is integrated into Emacs 24, I will need to go back and fix the require statements in the CEDET support in matlab mode. > > For completion, the output you quoted implies that there is an erroneous line breaks in the output string. Look at 'matlab-shell-completion-list', to see how it builds the command, and make sure there aren't any stray line breaks in the strings. Perhaps there was a download problem. > > Eric > > -----Original Message----- > From: xa...@gm... [mailto:xa...@gm...] > Sent: Monday, June 18, 2012 5:14 PM > To: mat...@li... > Subject: [Matlab-emacs-discuss] matlab-emacs configuration questions > > I've been struggling with getting matlab-emacs working for a bit now. > I wonder if you'd mind trying to give me a hand sorting this out. > > The problems I"m having are that: > > 1) I can't seem to get matlab configuration options to work (MATLAB menu -> Configuration) gives an error > Custom-mode: Symbol widget-mouse-face may not be buffer-local > > 2) I can't turn on the (matlab-cedet-setup) option: > File error: Cannot open load file, semanticdb-search > > 3) the tab-completions don't work unless I include the command (setq matlab-shell-ask-MATLAB-for-completions nil) in my .emacs file. > >>> matlabMCRprocess = >>> com.mathworks.jmi.MatlabMCR;matlabMCRprocess.mtFindAllTabCompletions( >>> 'full'), clear('matlabMCRprocess'); > ans = > > java.lang.String[]: > 'full' > 'fullfact' > 'fullfile' > >>> >>> > > > I'm running OSX Lion with emacs GNU Emacs 23.4.1 (x86_64-apple-darwin11.3.0, NS apple-appkit-1138.32) of 2012-04-24 > > > I've tried a number of configurations to install matlab-emacs correctly, this is the closest I've found, the following lines are added to my .emacs file: > > > (add-to-list 'load-path "~/.emacs.d/site-lisp-backup/matlab-emacs") > (load-library "matlab-load") > > ;; Enable CEDET feature support for MATLAB code. (Optional) > ;(matlab-cedet-setup) > > (setq matlab-cont-level 2) > (setq matlab-indent-level 2) > (setq matlab-shell-ask-MATLAB-for-completions nil) > > > I have built matlab-emacs from the latest cvs: > revision number 1.39 I think, and it builds with only warnings. > > I placed cedet 1.0.1 into the ../cedet folder. > > > Any help would be appreciated. I'd be nice to have autocomplete and mlint working. > > Cheers, > Sandy Patterson > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |