Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!cbmvax!snark!eric From: eric@snark.uu.net (Eric S. Raymond) Newsgroups: comp.emacs Subject: Re: The right way to do headers Message-ID: Date: 12 Feb 89 18:20:22 GMT Followup-To: <2846@hplabsz.hpl.hp.com> <4300032@m.cs.uiuc.edu> <49769@yale-celray.yale.uucp> Organization: Hidden City of Gondolin Lines: 19 In article steiner@topaz.rutgers.edu (Dave Steiner) writes: >>>What kinds of things would you use intervals for? >>I've always wanted to use something like this for being in a different >>mode when you are editing the headers in mail mode. >Nah, you just need a smarter mail mode. Here's a fragment from mine. I have written a super-sendmail which rms has and which may be included in version 19. It uses a plain old ordinary mark object (remember, marks are moved by insert/deletes) to define two `intervals'; the header region and the body region. The code for the various mail-specific major-mode functions has lots of conditionals that check on which interval you're in -- and no bogus separator string. This mode also has all the profile features of SVr2 mailx(1) supported, and smarter aliasing with exclusions. Email copies on request. -- Eric S. Raymond (the mad mastermind of TMN-Netnews) Email: eric@snark.uu.net CompuServe: [72037,2306] Post: 22 S. Warren Avenue, Malvern, PA 19355 Phone: (215)-296-5718