Some context:
I'm doing some linux kernel development on a Debian VM so naturally I'm using tramp. I want to use semantic-symref, but the trouble is that:
- Semantic will eventually call
cedet-gnu-global-call
- Which will use the value of
cedet-global-command
- Which will crap out because it uses 'call-process.
So from what I understand, I need it to be using tramp-call-process
.
My question is, can I monkey patch a function, namely cedet-gnu-global-call
? I have seen stuff like defadvice
, is this a use case for my problem?
By monkey patching, I mean that I want to replace cedet-gnu-global-call
with mine, but at runtime.
Or is there some way to get cedet-global to be smart
when used over tramp?
tramp-call-process
, it should probably callprocess-file
(which does delegate to Tramp, depending on default-directory).