Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!voder!pyramid!prls!philabs!linus!raybed2!applicon!bambi!calm!calm From: calm@calm.applicon.UUCP Newsgroups: comp.emacs Subject: Re: Sections in Gnu Emacs Buffers? Message-ID: <31400015@calm> Date: 21 Feb 89 16:12:00 GMT References: <2846@hplabsz.HPL.HP.COM> Lines: 47 Nf-ID: #R:hplabsz.HPL.HP.COM:2846:calm:31400015:000:2105 Nf-From: calm.applicon.UUCP!calm Feb 21 11:12:00 1989 ethz.UUCP!ceb writes: > ... spolsky-joel@CS.YALE.EDU (Joel Spolsky) writes: > ... 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. > If the overhead was low enough, this might be a way to implement > proper formatting, such as bold mode, underline mode, etc, > > Then you'd have to find a way to display them... > > While you're at it, how about simply having a hook to display the text > between the point and the mark in inverse-video, or standout mode, as ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ > the jargoneurs would say? ... One should not presume that they're necessarily always the same. My preferred highlight rendition would be a bold style. Particularly in an emacstool window with more than one emacs window, where the mode-lines that separate them are rendered in inverse-video. Some terminals are capable of more than one style of highlighting (SGR escape sequence, accessible from TERMINFO or TERMCAP). If a desired highlight treatment (set in .emacs) is unavailable for a given display, the default could be to use the basic standout mode. Emacstool (on Sun's) should consult ~/.defaults for the user's /Tty/Bold_style preferrence. Ashwin Ram's thoughtful comments about WHEN to highlight the region are well taken. Such a feature would be WONDERFUL! When selecting a region, I frequently bounce the cursor around with `C-x C-x' to help visualize the selection. Unnecessary if it's highlighted and the highlight is cleared after processing the region with a command. Two occasions when I would particularly like to see this kind of highlighting are: display of matching delimiters (instead of doing the cursor bounce) current match in searches and query-replace -- Fred Calm calm@applicon.com Schlumberger CAD/CAM, 829 Middlesex Tpke, Billerica, MA 01821 Is something VIOLENT going to happen to a GARBAGE CAN? -- Zippy