Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!rutgers!cmcl2!yale!spolsky-joel From: spolsky-joel@CS.YALE.EDU (Joel Spolsky) Newsgroups: comp.emacs Subject: Re: Sections in Gnu Emacs Buffers? Message-ID: <49769@yale-celray.yale.UUCP> Date: 6 Feb 89 05:15:48 GMT References: <2846@hplabsz.HPL.HP.COM> <4300032@m.cs.uiuc.edu> Sender: root@yale.UUCP Reply-To: spolsky-joel@CS.YALE.EDU (Joel Spolsky) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 23 In article <4300032@m.cs.uiuc.edu> liberte@m.cs.uiuc.edu writes: > >Stallman and I have just now been discussing interval-local >variables. If we can figure out how to do it, he wants to add it >to Emacs. A buffer would be divided into a sequence of disjoint >intervals, and each interval has a set of variables local to it, >analogous to buffer-local variables. The interval boundaries would >be automatically adjusted by Emacs as text is changed. > >Nothing is definite yet, so if you have any ideas, get them out now. >What kinds of things would you use intervals for? If the overhead was low enough, this might be a way to implement proper formatting, such as bold mode, underline mode, etc, like in PC- style word processors. You could have interval-local variables for character-format, paragraph-format, font, and so on. Then you'd have to find a way to display them... +----------------+----------------------------------------------------------+ | Joel Spolsky | bitnet: spolsky@yalecs.bitnet uucp: ...!yale!spolsky | | | internet: spolsky@cs.yale.edu voicenet: 203-436-1483 | +----------------+----------------------------------------------------------+ #include