I am working on a local file and I will see these TRAMP messages:
Tramp: Opening connection for [email protected] using ssh...
Tramp: Sending command `exec ssh -l YYY -o ControlPath=/var/folders/4c/5l5ydzjx1jqbjc3t60t41vpc0000gn/T/tramp.40799Yr1.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none XXX.XXX.com'
Tramp: Waiting for prompts from remote shell...
Tramp: Sending password
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on `XXX.XXX.com'
Tramp: Opening connection for [email protected] using ssh...done
Making tags-file-name local to TAGS while let-bound!
Why is emacs automatically establishing a remote connection? Why is it automatically building a TAGS file? How can disable these two features? Where are the references to the TAGS files stored, so one can edit it?
At one point this froze emacs to the point C-g repeatedly did not help.
UPDATE:
My machine was disconnected from the network and was able to catch this new error which likely seems related, as I was not working on a remote file.
Company: An error occurred in auto-begin
Company: Back-end (company-dabbrev-code company-gtags company-etags company-keywords) error "Tramp failed to connect. If this happens repeatedly, try
`M-x tramp-cleanup-this-connection'" with args (candidates CpF)
Company: An error occurred in auto-begin
Company: Back-end (company-dabbrev-code company-gtags company-etags company-keywords) error "File /ssh:***@***.com/project/TAGS does not exist" with args (candidates CpFq)
Still don't know how to resolve the issue, but hopefully this will provide a clue.