On 25.09.2013 09:24, Roberto E. Vargas Caballero wrote: >> Actually you don't need to change the code at all to get that >> effect. CSCOPE_EDITOR exists, and does what you want to use VISUAL >> for. > > VISUAL is a standard variable and is used by all Unix programs.
You're trying to argue against the cold facts there: cscope is one of the oldest Unix programs there is, and it evidently never bothered with VISUAL. Nor does any of the Unix standardization efforts (outside Linux) appear to have included it (not POSIX, not SUS). As-is, cscope already chooses between 4 different programs to run as the viewer/editor: $CSCOPE_EDITOR, $VIEWER, $EDITOR and plain vi. I don't see how adding yet another one makes anything any simpler. Regarding the idea of smuggling a tag letter into the search string: > Uhmmmm, it's true. I usually use cscope for c programs, but it is > possible to use it in other very different ways. I think this funcionality > is great, because there is a lot of information in the cscope index > that can be very usueful to the users, Unfortunately this aspect of the information in the database also appears to be routinely rather out of touch with reality, particularly where the definitions of enum/struct/union are concerned. That doesn't disturb normal operation of cscope, because these are never actually displayed. But exposing this level of detail would tend to cause quite some irritation --- quite possibly more than the feature's worth. cscope is not a replacement for the browsing capabilities of tools 40 years younger than itself like, say, the CDT brower in Eclipse. Nor should it even try to be, IMHO. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Cscope-devel mailing list Cscope-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cscope-devel