all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#3003: 23.0.92; Point trapped in overlay
@ 2009-04-15 23:29 Chong Yidong
  2009-04-16  2:15 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2009-04-15 23:29 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Carsten Dominik, 3003, Leo

Stefan, this is due to your change.  Here is an easier recipe to
reproduce the bug:

(defun foo-test ()
  (interactive)
  (switch-to-buffer "* TEST *")
  (erase-buffer)
  (insert "asdfgh")
  (put-text-property 3 5 'rear-nonsticky '(invisible))
  (put-text-property 3 5 'invisible t)
  (goto-char (point-min)))

Moving point forward now gets point temporarily stuck.  The crucial
factor is the rear-nonsticky property.

2009-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>

  * keyboard.c (adjust_point_for_property): Allow stopping betwen two
  invisible areas.

Here is the relevant code:

   /* Find boundaries `beg' and `end' of the invisible area, if any.  */
   while (end < ZV
          /* Stop if we find a spot between two runs of
             `invisible' where inserted text would be visible.
             This is important when we have two invisible
             boundaries that enclose an area: if the area is
             empty, we need this test in order to make it
             possible to place point in the middle rather than
             skip both boundaries.
             Note that this will stop anywhere in a non-sticky
             text-property, but I don't think there's much we
             can do about that.  */
          && (val = get_pos_property (make_number (end),
                                      Qinvisible, Qnil),
              TEXT_PROP_MEANS_INVISIBLE (val))

Do we really need to do this test?  This corner case seems unimportant,
as opposed to being able to treat non-sticky properties correctly.






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-16  4:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <877i1lnsvq.fsf@cyd.mit.edu>
2009-04-15 16:44 ` bug#3003: 23.0.92; Point trapped in overlay Leo
2009-04-16  4:15   ` bug#3003: marked as done (23.0.92; Point trapped in overlay) Emacs bug Tracking System
2009-04-15 23:29 bug#3003: 23.0.92; Point trapped in overlay Chong Yidong
2009-04-16  2:15 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.