You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to locate a tag "something" in buffer A, get to its definition in buffer B, and then insert some text in buffer B. However, when doing so I am inserting text in buffer A, even if point is at buffer B.
What am I doing wrong ?
The text was updated successfully, but these errors were encountered:
ggtags is async so when ggtags-find-definition is fired you are still in buffer A. I think a more natural solution might be something along these lines.
Set a custom ggtags-bounds-of-tag-function to tell ggtags how to get the tag at point; the default is to use the symbol at point.
provide a function to ggtags-find-tag-hook that does the insertion of your text.
I try to implement some logic on top of ggtags to manage vhdl sources. To achieve this, I need to act programmatically on buffer switching.
Say for example I am in buffer A. Then I declare
to locate a tag "something" in buffer A, get to its definition in buffer B, and then insert some text in buffer B. However, when doing so I am inserting text in buffer A, even if point is at buffer B.
What am I doing wrong ?
The text was updated successfully, but these errors were encountered: