>>> David <de_bb@...> seems to think that:
>"Eric M. Ludlam" <eric@...> writes:
>>I updated the regexp to handle your listed cases, but to also disallow
>>some items, where .* was too general.
>
>I just noticed one little problem: the regexp doesn't properly handle
>function names with underscores in them.
I'll get to this eventually. I usually fix this stuff up at work.
>> The work-timer thing only loads in the files referenced by the files
>> currently loaded in. Since matlab doesn't have an "include" statement
>> equivalent, it won't do anything.
>[...]
>> If you look at semanticdb-mk.el has a command line version (through
>> semanticdb.sh) that could probably be adapted.
>
>OK, I managed to scan all the tags in my Matlab files with
>semanticdb-mk.el. This works nicely for completing/searching tags for
>files in the current directory, but how do I get CEDET/semantic to also
>use the tags in all the subdirectories? As you said, Matlab doesn't have
>an 'include' statement, so I guess I would somehow have to specify
>"manually" which subdirectories should be included?
Since MATLAB doesn't conform to the C like mechanisms, getting this
sort of thing to work requires overloading all the functions that are
too C centric. For example, `semanticdb-find-tag-by-name' calls
something that builds a `path'. That semanticdb-find-translate-path
should be overridden to include the local file, anything in private
with the specified name, and anything on the MATLAB path with the
specified name. (Find-translate-path builds a map of DB tables to
search, and is different from a what might be considered an include
path.)
A second thing is to write a simple EDE project for MATLAB that knows
how to look at a MATLAB install, and extract the file path. EDE needs
some sort of high speed `locate' function which would then be used for
this case.
Rooting out all these features wouldn't be too hard, but would be
time-consuming.
>Regards,
>David
>
>PS: If you rather want to continue this thread on the matlab-emacs mailing
>list, just do so (I am subscribed to it).
[ ... ]
Either is ok. Those on the other list might not be interested in
detailed development discussion, but would be interested in
intermediate announcements of enhancements.
Eric
--
Eric Ludlam: eric@...
Siege: http://www.siege-engine.com Emacs: http://cedet.sourceforge.net
|