Re: [Ctags-devel] ctags library
Brought to you by:
dhiebert
From: Elias P. <el...@us...> - 2006-09-20 18:17:13
|
[Sorry, I just see, I had sent this as private reply instead to the list first. Maybe the mailing list settings should be adjusted to reply to the list by default?] On Wed, 2006-09-20 at 15:40 +0200, Massimo Cora' wrote: > > 2. Use ctags in its server-like filter mode. > > the main "problem" with the filter-mode is that it operates with saved > files on disk. In our editor we wish to have a real-time updating of > symbols, without the need to flush the buffer to the disk, then parse it > with ctags, and then use the symbols. This is IMHO is a bad design. > I am aware of many programs doing like that, see for example the vim > plugin IComplete http://stud4.tuwien.ac.at/~e0125672/icomplete/ but > doing everything on the fly is the best choice. > I mean, why use harddisk if we can just skip it and use RAM directly? > > I hope you understand my point of view. > A solution to the temporary files problem would be if ctags would accept the filename "-" to be stdin. Then Anjuta cold do something like this: process = popen("ctags -o- -") fwrite(process.stdin, buffer) result = fread(process.stdout) Compared to the libray version this would still open up a ctags process each time - but no files are created anymore. And I assume it would be easier to do than the library, code-wise. -- Elias Pschernig |