Open alienbogart opened 5 years ago
What's your counsel-ag-base-command
?
I removed any counsel-ag
configuration in order to debug this issue.
I can't reproduce the issue. Looks like a problem with your config.
I did:
(setq counsel-ag-base-command "ag --nocolor --nogroup -f %s")
(counsel-ag nil "~/Downloads/temp")
If you don't add -f
to the ag command, it won't even open any symlinks.
Okay, I did remove the configuration but the files were not tangled. Sorry about that. It seems to work fine without -f
, and it actually does follow the symlinks using the same function. Saving seems to be working fine. I'll observe the behavior a little more before closing myself.
It wasn't really showing symlinks. I tried (setq counsel-ag-base-command "ag --nocolor --nogroup -f %s")
and the issue came back.
Runtime Environment
Issue
After I switch to a file using this function:
, which contains symlinks to various configuration files, if I modify and try to save the original file is immediately deleted. The only way to save it is by copying its contents to another file. For most commands, though, Emacs will present the message:
Wrong type argument: number-or-marker-p, nil
, requiring a restart in order to be usable again.