xcscope.el icon indicating copy to clipboard operation
xcscope.el copied to clipboard

navigating function call hierarchy

Open anupamk opened this issue 11 years ago • 3 comments

while tracing a function call flow, we can go up the call-stack via the "cscope-pop-mark", once that is done, the popped mark is lost.

it would be nice if we could have a 'queue' kind of semantics where the call chain can be traversed backwards and forwards as well.

anupamk avatar Mar 13 '14 09:03 anupamk

Anupam Kapoor [email protected] writes:

while tracing a function call flow, we can go up the call-stack via the "cscope-pop-mark", once that is done, the popped mark is lost.

it would be nice if we could have a 'queue' kind of semantics where the call chain can be traversed backwards and forwards as well.

Hi.

Thanks for the suggestion. Currently the plain emacs mark ring stores all the locations too, so none of the positions are lost (unless I have a bug, of course). I agree this isn't ideal, and I'll think about ways to improve it.

dkogan avatar Mar 13 '14 09:03 dkogan

Currently the plain emacs mark ring stores all the locations too, so none of the positions are lost...

hmm, i was under the impression that the emacs-marker-ring doesn't cross buffer boundaries i.e. as i navigate within a file, i can C-u C-SPC, to some previous position within the same file. might be mistaken though.

thank you kind regards anupam

anupamk avatar Mar 13 '14 10:03 anupamk

OK; you're right. Emacs does have some global mark functions, and maybe they're useful here, but I need to sit down and think about this. I vaguely wanted something better in this area before, but haven't yet tried to think about what. Maybe simply adding a forward complement to cscope-pop-mark is enough.

dkogan avatar Mar 17 '14 06:03 dkogan