How to navigate perl code using cscope in emacs?

I have been a VIM user for 4 years, but have been trying to learn emacs. My project is entirely written in Perl, and I'm trying to get cscope to work in emacs for perl.

I have no problem with perl navigation from VIM. "cs add cscope.out" from vim command-line mode does this job for me. However, in emacs with the same cscope database (which has both C ++ and perl characters) emacs perfectly recognizes my C characters (Mx Mx cscope-find-global-definition). But for perl characters, I get the following error.

Error: Search global definition: somePerlFunction Search complete.
Search time = 0.92 seconds. No matches found.

Does emacs support perl code navigation? If not, isn't that a major flaw? Can someone help?

+5
source share
1 answer

Yes, Emacs supports cscope, there are several options:

http://www.emacswiki.org/emacs/CScopeAndEmacs

I just tested xcscope.el on GNU Emacs 24 and it seems to work fine.

If you already have a cscope database, I suggest you run cscope from the command line using the -d flag:

cscope -d

" " , , cscope, Emacs. , , . cscope Emacs , Emacs perl, .

cedet:

http://cedet.sourceforge.net/

+1

All Articles