branch: externals/ggtags commit 4993198df2c007b266208e85d41b931a2d6fe3cb Author: SeungKi Kim <tttuuu...@gmail.com> Commit: Leo Liu <sdl....@gmail.com>
Fix #218: make `xref-find-definitions' work correctly in symlinks --- ggtags.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggtags.el b/ggtags.el index 3e9e9bc2f2..9b33eecbec 100644 --- a/ggtags.el +++ b/ggtags.el @@ -2417,7 +2417,7 @@ properties in the summary text of each xref." with re = (cadr (assq 'grep ggtags-global-error-regexp-alist-alist)) while (re-search-forward re nil t) for summary = (buffer-substring (1+ (match-end 2)) (line-end-position)) - for file = (expand-file-name (match-string 1)) + for file = (expand-file-name (file-truename (match-string 1))) for line = (string-to-number (match-string 2)) for column = (string-match-p tag summary) if colored do (setq summary (ansi-color-apply summary)) end