-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cscope-index-files doesn't work with paths using whitespaces #14
Comments
andijh92 <notifications@github.com> writes:
cscope-index-files doesn't work with paths using whitespaces. They
should be enclosed in double quotes.
Hi. Sorry it took so long to reply. I was under the impression that
files with spaces in their names weren't supported by cscope at all (the
C tool that xcscope.el relies upon). Is this not the case? If you
enclose the filenames in double quotes then you're able to index and
search these files?
|
Hi, from the cscope(1) manual page:
(this is from cscope version 15.9) I tried this quick change to xcscope.el and I confirm that it works:
This also removes all the annoying "cannot find file ..." that I was getting all the time. Problems:
|
Hi. Thanks for the report. To clarify, the proposed change makes
whitespace-in-filenames work for you, but other crazy characters remain
unescaped and broken? Do you see any downsides to that modification?
|
I was having a closer look at this and I created a new patch that hopefully quotes all filenames correctly. I gave it a try with files named Now the index is generated correctly. If you search a symbol that is inside a file with a whitespace in the name cscope still complains a bit and does not work 100%, but at least it does work partially (that's a cscope bug, not a problem with the Emacs elisp file). Files with double quotes or backslashes seem to work fine. See #23 for more details. And here are related discussion for cscope: https://sourceforge.net/p/cscope/bugs/282/ and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579531 |
This was merged a while back in b9bd846. Closing. |
Hi,
cscope-index-files doesn't work with paths using whitespaces. They should be enclosed in double quotes.
Regards,
Andy
cscope version: 20160628.2324
The text was updated successfully, but these errors were encountered: