--- Begin Message ---
Subject: |
23.0.92; Point trapped in overlay |
Date: |
Wed, 15 Apr 2009 17:44:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (darwin) |
Hi Emacs Developers,
I thought this was an org bug but it turns out an Emacs one. See the
discussion thread in: http://thread.gmane.org/gmane.emacs.orgmode/12885.
Here is how to reproduce.
1. Make an overlay
Org mode is used only to easily create such an overlay that could
demonstrate the bug.
- In a new buffer in org mode, begin a line with a few spaces and
then type in http://www.google.com
- Move the cursor to be within that url and type 'C-c C-l' and follow
the minibufer prompt to change the 'description' to 'google'
2. Put the point to the left of the url overlay and try move the cursor
into the overlay. You can see when it reaches the first character of
the overlay, it appears stuck.
Daniel Clemente in http://article.gmane.org/gmane.emacs.orgmode/12887
analysed the cause.
Kind regards,
--
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.
--- End Message ---
--- Begin Message ---
Subject: |
Re: 23.0.92; Point trapped in overlay |
Date: |
Thu, 16 Apr 2009 00:07:37 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Stefan, this is due to your change. Here is an easier recipe to
>> reproduce the bug:
>
> Yes, I recognized it right away :-(
> I think we're just going to have to revert that change for now.
OK. I've ifdef'ed it out, with a comment.
> Tho, I think that in reality the "right" fix is to only place the
> rear-nonsticky property on the last invisible char since inserting text
> in the middle of the invisible "http://www.google.com" shouldn't result
> in an invisible "http://www.go" followed by the visible inserted text
> and then an invisible "ogle.com".
Yes, that's true. However, I don't know how commonly other packages use
runs of rear-nonsticky properties.
--- End Message ---