Add Java support for Emacs cscope

Source: Internet
Author: User
Tags egrep

By default, the xcsidl plug-in of Emacs does not scan Java files. In addition, there are many. aidl files in the Android source code, which are not included in the scanning range of xcscope by default. One way to solve this problem is to manually create a cssag index under the project root directory: $ find. -name "*. java "-or-name "*. aidl "-or-name "*. cpp "> cscope. files $ cs1_- B has obvious disadvantages. The indexing function is not implemented in Emacs. It is troublesome to create a shell separately. I found that the essence of this problem is that xcssag uses the csbench-indexer script to create an index, while csbench-indexer only scans the source code files of C/C ++ by default. In fact, you only need to modify csbei-indexer to extract the 140th rows from the original egrep-I '\. ([chly] (xx | pp) * | cc | hh) $ '| \ change to egrep-I '\. ([chly] (xx | pp) * | cc | hh | java | aidl) $ '| \ then you can use C-c s I to create an Android project index in Emacs.⚓Permalink

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.