Hi
Using Vim-7.3.89, I see a discrepancy between between
output of ":cscope help" and ":help cscope-find":
:cscope help
...snip...
t: Find assignments to
:help cscope-find
...snip...
4 or t: Find this text string
So should ":cs find t foo" find assignments to variable 'foo'
or find lines containing string 'foo'?
Trying it using cscope 15.7a, ":cs find t foo" gives lines containing
'foo' (not assignments to foo). This is consistent with information
on the official cscope page (http://cscope.sourceforge.net/). However,
the following link suggests that ":cs find 4" or ":cs find t" should find
assignments:
http://whiskypedia.valeriodistefano.com/Cygwin-Easy-2007.03.21/HTML/cygwin/usr/share/doc/mlcscope-14.1.8/html/cscope.html
I also found this:
http://stackoverflow.com/questions/3989375/strange-cscope-command-line-limitation
It's confusing.
I think we should change the message in vim/src/if_cscope.c as
in attached patch to be consistent with latest cscope-15.7 and
with Vim help file.
-- Dominique
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r 28398206597f src/if_cscope.c
--- a/src/if_cscope.c Fri Dec 24 14:00:17 2010 +0100
+++ b/src/if_cscope.c Tue Dec 28 20:06:35 2010 +0100
@@ -1346,7 +1346,7 @@
" g: Find this definition\n"
" i: Find files #including this file\n"
" s: Find this C symbol\n"
- " t: Find assignments to\n"));
+ " t: Find this text string\n"));
cmdp++;
}
@@ -1657,7 +1657,7 @@
/*
* PRIVATE: cs_make_vim_style_matches
*
- * convert the cscope output into into a ctags style entry (as might be found
+ * convert the cscope output into a ctags style entry (as might be found
* in a ctags tags file). there's one catch though: cscope doesn't tell you
* the type of the tag you are looking for. for example, in Darren Hiebert's
* ctags (the one that comes with vim), #define's use a line number to find the