Hi, and many thanks for your feedback !!
The comments you made are very sensible, and I’ll quickly comment on the most important ones :
4. That also came to my mind, but did not reveal any problems…. Perhaps I should try again and double check though !
5. You’re not the only one to wonder what I do it that way…. On the emacs mailing list other people wondered too ! See the first few messages in this thread:
To cut a long story short here is the reason:
> In fact I ended up with this command, because I was trying to "debug" a more
> complex command, where the result of "find" is piped to ctags:
> find -type f -name "*.c" | ctags -e -L -
> Because I was getting the absolute/relative path problem I mentioned, I
> simply split the command into two fragments, explicitly creating an
> intermediate file:
> find -type f -name "*.c" > filelist.txt
> more filelist.txt | ctags -e -L -
I also realise that using “more” was not the best choice, but the problem is the same with “cat”.
In fact, the problem is the same when (as you suggest) the command is reduced to :
ctags -e -L filelist.txt
To illustrate this, if you want to investigate but only want to do one simple thing, then simply repeat these steps (quoted from http://lists.gnu.org/archive/html/help-gnu-emacs/2012-01/msg00090.html)
> In fact, after a little debugging, I've devised the following experiment for
> you to reproduce (with --no-init-file)
> 1/ >From a freshly opened emacs if do M-x shell followed by:
> ctags -e -L filelist.txt
> or even
> "C:/Program Files/Emacs/emacs-23.3/bin/cmdproxy.exe" /C "ctags -e -L
> then everything is fine.
> 2/ Now from e.g. a scratch buffer, I evaluate
> (cd "C:/test/")
> (call-process-region (point) (point) "C:/Program
> Files/Emacs/emacs-23.3/bin/cmdproxy.exe" nil (current-buffer) nil "-c"
> "ctags -e -L filelist.txt"))
> which is more or less what M-x shell-command would do... then the result is
> 3/ Worse, if you kill the original shell buffer created in 1/, and repeat
> the same operation as in 1/... then the result is incorrect.
I guess the first two questions I need to ask are:
J.D. Laub [mailto:email@example.com]
Sent: 11 July 2012 03:48
Subject: Re: [Ctags] Ctags generates absolute instead of relative paths
I'm definitely not the guy to answer either windoze or emacs questions, but if you're desperate, here are some things I'd try were I in your shoes:
Good luck. If you run across a solution, please post it.