Eric M. Ludlam wrote:
>>>>M Jared Finder <jared@...> seems to think that:
>>I've started using Semantic and I have a couple questions and a
>>suggestion. semantic-version is "2.0pre3", Debian package 1:1.0pre3-1
>>1. I like using Semantic's completion for C and C++ code (thanks for all
>>the customization in *how* to show completions!), but it acts much worse
>>than the existing completions for Emacs Lisp and Lisp code. I'd like to
>>disable Semantic for these two modes. I've added
>>(remove-hook 'elisp-mode-hook 'semantic-default-elisp-setup)
>>(remove-hook 'lisp-mode-hook 'semantic-default-elisp-setup)
>>to my init file, but I still get Semantic modes at startup. How can I
>>make sure that the global Semantic modes do not get initialized at
>>startup of these modes?
> For this, you are probably better off just disabling the completion
> mode. The mode is semantic-idle-completions-mode and you could
> disable it in the emacs-lisp-mode-hook.
Done. Thanks for your help.
>>2. Is there any way to use Semantic for a context sensitive find-tag?
> The senator mode has two jump bindings. `semantic-complete-jump'
> might be close. Alternately, you could use the speedbar or ECB
> analyzer mode which has push-buttons which are context sensitive
> matches against a local context.
Wow, that's almost exactly what I want. Thank you!
The biggest problem is that it doesn't look at tags in other directories
until I open a file in that directory. Is it possible to tell semantic
to load all semantic.cache files in this directory and any sub
directory? Yes, it might take time, but I'm going to do that at most
once a day.
(It'd be nice if it understood C++ namespaces as well, but that's easy
enough to work around.)