ECB works out of the box with indirect buffers, especially with indirect
buffer clones created with the command
available with GNU Emacs >= 21). They will be handled as all other buffers and
you can work with them with no difference to “normal” buffers. With one
Please note: Cause of a bug in Emacs 22 (and maybe also in Emacs 23) the propagation of parsing informations from one buffer to all others which are in an indirect-buffer relation to the same base-buffer does currently not work.
What does this mean: If you modify a buffer then Emacs propagates this change to all buffers with the same base-buffer. ECB/semantic recognize this change and do all necessary to automatically reparse the changed buffer (at least if you have customized semantic/ECB to do this). So far so good, but: If you switch to another buffer with the same base-buffer then you will notice that the methods-window of ECB still displays the contents before the change, ie. the need for a reparse has not been propagated to these other buffers. This is a bug in Emacs.
What can you do: As long as this bug is not fixed there is no chance that all
other affected “indirect-related” buffers will be reparsed automatically
after modifying one of them. So you have to do this reparse “by hand” after
switching to such an indirect-related buffer, but this is very simple: Just
call the command
ecb-rebuild-methods-buffer with prefix arg or hit
<C-u C-c . r> (key this command is bound to).
Lets make an example:
ecb-rebuild-methods-bufferwith prefix argument (ie. clear-cache is true) or hitting <C-u C-c . r>. Note: Calling this command without prefix argument is not enough!