emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
620 stars 162 forks source link

Create tags for other languages in ess-build-tags-for-directory, even in R #453

Open leafpile opened 7 years ago

leafpile commented 7 years ago

For projects with Rcpp, it would be convenient to build tags for .cpp files as well. :) Right now when ess-build-tags-command is defined (with ess[R]), ess-build-tags-for-directory only build tags for R functions. We could probably run etags first for other languages, and use rtags to append to the TAGS file.

ess-core commented 7 years ago

Good idea!

-- Rodney Sparapani, PhD Assistant Professor of Biostatistics Medical College of Wisconsin, Milwaukee

-----Original Message----- From: ESS-core ess-core-bounces@r-project.org on behalf of Jingcheng Xu notifications@github.com Reply-To: emacs-ess/ESS reply@reply.github.com Date: Wednesday, September 6, 2017 at 2:18 PM To: emacs-ess/ESS ESS@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [emacs-ess/ESS] Create tags for other languages in ess-build-tags-for-directory, even in R (#453)

For projects with Rcpp, it would be convenient to build tags for `.cpp` files as well.  :)
Right now when `ess-build-tags-command` is defined (with `ess[R]`), `ess-build-tags-for-directory` only build tags for R functions.
We could probably run `etags` first for other languages, and use `rtags` to append to the `TAGS` file.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_emacs-2Dess_ESS_issues_453&d=DwICAg&c=aFamLAsxMIDYjNglYHTMV0iqFn3z4pVFYPQkjgspw4Y&r=2M6XAlqJdq-Ryc3EDyECCw&m=f2zUddUQIXEmVpp221Ohs9Oy-pKznBUh4RRhO0y3rKI&s=hnpuAtfgPjlKg_9MjoaTT3UwAl3lKOoe6PmLvkZ_zUM&e= 
    [[alternative HTML version deleted]]

_______________________________________________
ESS-core list: https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_ess-2Dcore&d=DwICAg&c=aFamLAsxMIDYjNglYHTMV0iqFn3z4pVFYPQkjgspw4Y&r=2M6XAlqJdq-Ryc3EDyECCw&m=f2zUddUQIXEmVpp221Ohs9Oy-pKznBUh4RRhO0y3rKI&s=IdOIpjurv9bBZawE-6OMbCeASjd9TU1aZfhZvyZzJOw&e= 
vspinu commented 7 years ago

I think this could be customized, or at least should require minor tweaks as ess-build-tags-for-directory already fall back on etags.

I think this functionality is more generic than ESS. I would be happy to know if some generic systems like ggtags would allow plugging in the R tagger when iESS is running. Then the problem would be solved automatically.

lionel- commented 6 years ago

I use M-x projectile-regenerate-tags. It feels like this feature is out of scope for ESS but we should provide more ways of defining an ESS project that other Emacs packages can pick up.