Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Feb 2001 11:54:29 -0700
From:      Wes Peters <wes@softweyr.com>
To:        Robert Watson <rwatson@FreeBSD.ORG>
Cc:        Kevin Brunelle <kruptos@netzero.net>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Kernel editing tools.
Message-ID:  <3A843CE5.FCA2EE6@softweyr.com>
References:  <Pine.NEB.3.96L.1010207220923.19807K-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Robert Watson wrote:
> 
> On Wed, 7 Feb 2001, Kevin Brunelle wrote:
> 
> > Sorry if you have heard this before, or if it is annoying. I just can't
> > seem to find any information on this.
> >
> > I have been poking around my kernel for quite some time now, and I have
> > been doing it with various text editors and programs of that nature. It
> > suddenly occured to me that there might be a better way to go about
> > this. So I ask you, are there any programs that make reading and editing
> > the kernel sources any easier? I was thinking about possibly writing a
> > utility to do something like this, if one cannot be found. I don't
> > pretend to be super skilled; I just want some honest advice. Surely you
> > aren't all hacking away on vi or the *other* editor.
> >
> > Well, thanks in advance for any help you can offer.
> 
> Heh.  Mostly I use vi and more, along with liberal use of grep and
> occasionally (fear) sed.  In the past, I've used glimpse for faster
> searching of the source tree.  And cvs commands such as log, diff,
> annotate, and commit (!) are invaluable.  When browsing less familiar
> source trees, such as the Linux kernel source, I like using web-based
> source cross-referencing.  As Mike Smith points out, an excessive number
> of open xterm windows makes life a lot easier--the larger the screen, the
> more productive I am.  Right now I have about 15 source files open in
> various vi sessions, and I'm coveting the Apple 22" display...

Snort.  Emacs and etags.  C-X-2 and C-X-3 are your friends.

We've also implemented a nightly LXR index at work for web browsing of the 
source.  I've only played with it a little bit, but the indexed searches
are sure fast.

-- 
            "Where am I, and what am I doing in this handbasket?"

Wes Peters                                                         Softweyr LLC
wes@softweyr.com                                           http://softweyr.com/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A843CE5.FCA2EE6>