🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #721

Closing off zones?

#721
From: William M. Perry
Date: Thu, 20 Jan 1994 19:25
34 lines
2145 bytes
Hello all,

   I have written a world wide web browser in emacs lisp, with support
for graphics/zones/etc/etc/ in epoch/lucid/fsf19.  I've run into a
slight problem in epoch 4.x

   To keep track of where hyperlinks are in a buffer, and where they
point, I set the data field of a zone.  The problem arises when text
is inserted at the beginning/end of the zone - the text is
automatically included in the zone.  This is a Bad Thing.

   I have implemented the HTML+ forms, and rely on having accurate
start/end points of the zones for removing the old information in the
buffer and inserting the newly entered data.  The document will look
like this:

   * [ ] Check box #1
   * [ ] Check box #2
   * [X] Check box #3

^^^^^^^^ this whole area of text is in the zone that says 'this is a
form entry area'.  When the user clicks in the checkbox, it deletes
the entire zone, including the ' * '.  When I re-insert the [X] or [ ]
to indicate a checked/unchecked box, the formatting is totally hosed.
I got around this in emacs 19 and lucid emacs 19.x by setting the
extent/text properties 'start-open and 'end-open, and it works fine.
Also got around this problem in emacs 18 by using
insert-before-markers.

   Is there anything similar to insert-before-markers for epoch?  Or a
way to tell it to not add new text to a zone?

   Thanks for any information,
	Bill P.
Technical Details
Message-ID: <WMPERRY.94Jan20142536@bronze.ucs.indiana.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!uunet!MathWorks.Com!europa.eng.gtefsd.com!avdms8.msfc.nasa.gov!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!usenet!wmperry

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,f58821175a09a10b,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1994-01-20 19:04:52 PST
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!uunet!MathWorks.Com!europa.eng.gtefsd.com!avdms8.msfc.nasa.gov!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!usenet!wmperry
From: wmperry@bronze.ucs.indiana.edu (William M. Perry)
Subject: Closing off zones?
Message-ID: <WMPERRY.94Jan20142536@bronze.ucs.indiana.edu>
Lines: 34
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: xyplex4-1-1.ucs.indiana.edu
Organization: Computer Science, Indiana University
Date: Thu, 20 Jan 1994 19:25:36 GMT