From owner-freebsd-hackers Fri Feb 9 10:45:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from homer.softweyr.com (bsdconspiracy.net [208.187.122.220]) by hub.freebsd.org (Postfix) with ESMTP id E1B7837B65D; Fri, 9 Feb 2001 10:44:59 -0800 (PST) Received: from [127.0.0.1] (helo=softweyr.com ident=Fools trust ident!) by homer.softweyr.com with esmtp (Exim 3.16 #1) id 14RIgg-0000Kd-00; Fri, 09 Feb 2001 11:54:30 -0700 Message-ID: <3A843CE5.FCA2EE6@softweyr.com> Date: Fri, 09 Feb 2001 11:54:29 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Robert Watson Cc: Kevin Brunelle , freebsd-hackers@FreeBSD.ORG Subject: Re: Kernel editing tools. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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