home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / lucidem / help / 102 < prev    next >
Encoding:
Text File  |  1992-07-20  |  1.2 KB  |  28 lines

  1. Newsgroups: alt.lucid-emacs.help
  2. Sender: help-lucid-emacs-request@lucid.com
  3. Date: Tue, 21 Jul 92 09:04:09 PDT
  4. From: devin%scylla@lucid.com (Matthieu Devin)
  5. Message-ID: <9207211604.AA15883@scylla.lucid>
  6. Subject: Re: positioning the cursor
  7. References: <9207211138.AA26674@sundeck.East.Sun.COM>
  8. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  9. Lines: 17
  10.  
  11. Yep we have known bugs in positioning the cursor.  
  12.  
  13. The bugs comes from the fact that the display code caches the buffer position
  14. of the first character of every line on the screen, and that in some cases this
  15. cache is not updated when the screen is redisplayed.  Mostly when the redisplay
  16. shortcuts are used, like when you type ^O at then end of a line.
  17.  
  18. It's not so easy to fix because the code has become so messy after the first
  19. implementation of the extents (the one using the intervals paradigm).  We want
  20. to fix this by redoing the redisplay code, at least redesiging the data
  21. structures representing the contents of the screen.  
  22.  
  23. A quick fix could be to never use this cache and always call glyphs_from_bufpos
  24. starting from the window_start position when mapping screen coordinates to
  25. pixel coordinates.  This would make event-x and event-y a little slower.
  26.  
  27. Matthieu
  28.