Thank you for your reply, I will try your suggestion, before that, help me decipher the find command you've written.
Find files in the current directory with the name matching *.h/*.c/*.m? and then ??????? Finally pipe the output to ctags.exe. One more crucial question, is there any document available for: how one should run the ctags.exe (windows) to get a desired output? -FFB On Tue, Dec 31, 2019, 9:30 PM Eli Zaretskii <e...@gnu.org> wrote: > > From: "FallingFromBed ." <fallingfrom...@gmail.com> > > Date: Tue, 31 Dec 2019 15:47:10 +0530 > > > > I am facing an issue when creating a ctag DB using the ctags.exe file-- > found in Emacs package. > > > > From git-bash, I ran the below command > > > > "$~/Downloads/emacs-26.3-x86_64/bin/ctags.exe -R *" > > > > Tag file gets created, but it skips the source code present inside the > directories, after running the above > > command I've been getting > > > > bin: Permission denied > > contrib: Permission denied > > crypto: Permission denied > > doc: Permission denied > > etc: Permission denied > > games: Permission denied > > gnu: Permission denied > > include: Permission denied > > initrd: Permission denied > > lib: Permission denied > > libexec: Permission denied > > nrelease: Permission denied > > sbin: Permission denied > > You are invoking 'ctags' incorrectly: it needs a list of file names to > open and scan. You used the wildcard "*" which matches all the files, > including the directories, and 'ctags' on Windows cannot open and scan > directories, only files. > > What you probably want is this instead: > > $ find . -name '*.[chm]' -o -name '*.el' | > ~/Downloads/emacs-26.3-x86_64/bin/ctags - > > (This assumes you have a GNU 'find' command reachable from the > git-bash where you run this.) >