Re: browsing kernel source with emacs
Are you generating the tags every time you search for it? I don't think so since generating cscope database takes about a minute on my machine while I wait about 10 secs for a tags list. Pawel Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433 -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ
Re: browsing kernel source with emacs
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ
Re: browsing kernel source with emacs
Are you generating the tags every time you search for it? See the man page to just build the cscope database. And try to search for tags/symbols without rebuilding the database. Not sure if this is what you seek, but this may help. thanks On 9/1/07, Pawel K [EMAIL PROTECTED] 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. 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 [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ -- play the game -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ