emacsorphanage / helm-gtags

GNU GLOBAL helm interface
203 stars 32 forks source link

tag references did not update #163

Closed huangguiyang closed 7 years ago

huangguiyang commented 7 years ago

emacs version: 25.1.1 (macos) Package-Version: 20160917.2238 Version: 1.5.6

For example, after I rename a function foo to bar, update all related function call occurrences foo() with bar() and save them. helm-gtags-find-rtag can't find references of bar unless I run gtags in the source directory manually or run helm-gtags-find-rtag in emacs with command prefix 'C-u'.

syohex commented 7 years ago

Yes, you need to update global tag when you rename function/symbol names.

huangguiyang commented 7 years ago

Can helm-gtags do it automatically?

syohex commented 7 years ago

Set helm-gtags-auto-update non-nil and enable helm-gtags-mode, then helm-gtags updates tag at file saving time.

huangguiyang commented 7 years ago

Yes, I do. But helm-gtags only update GTAGS, but GRTAGS file is not updated.

huangguiyang commented 7 years ago

It seems that the option --single-update may be the reason.

syohex commented 7 years ago

Ah, I see.

syohex commented 7 years ago

Please update tag manually in this case. Sorry.

huangguiyang commented 7 years ago

OK. Waiting for your fix →_→