Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!sun.soe.clarkson.edu!mrd From: mrd@sun.soe.clarkson.edu (Michael DeCorte) Newsgroups: comp.emacs Subject: Re: Sections in Gnu Emacs Buffers? Message-ID: Date: 10 Feb 89 02:47:47 GMT References: <2846@hplabsz.HPL.HP.COM> <4300032@m.cs.uiuc.edu> <49769@yale-celray.yale.UUCP> <9134@bloom-beacon.MIT.EDU> Sender: news@sun.soe.clarkson.edu Organization: Clarkson University, Postdam NY Lines: 39 In-reply-to: jrferro@athena.mit.edu's message of 7 Feb 89 00:07:09 GMT >What kinds of things would you use intervals for? It would make it possible to write a web mode or in my case c-web. For those of you who aren't familiar with web it is a way of writing "literate" programs. (not this isn't ai). Basically you mix pascal code in with TeX code. Running foo.web through tangle.web generates foo.c which is compilable by your favorite c compiler. Running foo.web through weave.web generates foo.tex which after being TeX'ed will be the prettiest program you have ever seen. here is an example of web. ------------------------------------------------------------ @* Basic input routines. For the purposes of this program, a |byte| is an unsigned eight-bit quantity, and an |ASCII_code| is an integer between @'40 and @'177. Such ASCII codes correspond to one-character constants like \.{"A"} in \.{WEB} language. @= @!byte=0..255; {unsigned eight-bit quantity} @!ASCII_code=@'40..@'177; {standard ASCII code numbers} ------------------------------------------------------------ The top part is TeX code while the bottom part is sort of pascal. I haven't the faitest idea how to make a major mode for this but might (probably not really) with regions in a buffer. -- Michael DeCorte // (315)265-2439 // P.O. Box 652, Potsdam, NY 13676 Internet: mrd@sun.soe.clarkson.edu // Bitnet: mrd@clutx.bitnet --------------------------------------------------------------------------- Clarkson Archive Server // commands = help, index, send, path archive-server@sun.soe.clarkson.edu archive-server%sun.soe.clarkson.edu@omnigate.bitnet dumb1!dumb2!dumb3!smart!sun.soe.clarkson.edu!archive-server ---------------------------------------------------------------------------