Re: browsing kernel source with emacs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 1 Sep 2007, Pawel K wrote:

> Hello
> How can I force emacs to show the list of tags to jump
> to in case there are more than one symbol of a
> specific name.

What I do is generate once per kernel tree a TAGS file per

make TAGS

(don't foret your usual ARCH=... CROSS_COMPILE=... variables in case 
you're cross-building, which you probably don't), then just open any 
source file (.c, .h) in emacs, press "ALT ." as usual, if it hasn't loaded 
TAGS yet, it'll ask you where to get them, you point it to the top level 
in your kernel, emacs will read tags in and jump to the first definition. 
To jump to the next one use "CTRL u" "ALT ." repeatedly.

Notice, the make TAGS target has been significantly improved (fixed) since 
about 2.6.21 / 2.6.22 so that now you most often jump to struct's 
definition, instead of visiting all static instances of that struct first.

HTH
Guennadi

> 
> I tried the following tools but they don't work good
> enough for me:
> 
> 1. exuberant-ctags and etags with conjunction with
> etags-select.
> It works very slow. It would take more than 10 seconds
> to show the tags choice list on Pentium 4 2.4 GHz
> 
> 2. cscope in emacs is faster but it is very slow as
> well. It takes about 3 seconds to generate the tags
> choice list  (Pentium 4 2.4 GHz)
> 
> I'm aware of other tools: ecb, imenu, ebrowse etc. It
> takes me to much time to check all of them.
> 
> I believe emacs is a very powerful editor and many
> kernel developers use it and surely they don't spent a
> few seconds every time they want to jump to the
> function definition.
> 
> I tried vim with exuberant-ctags on the same machine.
> It is awesome. It generates tags list at once (in 0.1
> seconds).
> 
> Please tell me if there are any other tools that can
> do that as quickly as vim.
> 
> Thank You for help
> 
> 
>        
> ____________________________________________________________________________________
> Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
> http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  
> 
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
> 
> 
> 

---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux