Thread View: gnu.epoch.misc
1 messages
1 total messages
Started by William M. Perry
Thu, 20 Jan 1994 19:25
Closing off zones?
Author: William M. Perry
Date: Thu, 20 Jan 1994 19:25
Date: Thu, 20 Jan 1994 19:25
34 lines
2145 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads