From: Chong Yidong <cyd@stupidchicken.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Carsten Dominik <dominik@uva.nl>,
3003@emacsbugs.donarmstrong.com, Leo <sdl.web@gmail.com>
Subject: bug#3003: 23.0.92; Point trapped in overlay
Date: Wed, 15 Apr 2009 19:29:11 -0400 [thread overview]
Message-ID: <87k55lpkc8.fsf@cyd.mit.edu> (raw)
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.
next reply other threads:[~2009-04-15 23:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-15 23:29 Chong Yidong [this message]
2009-04-16 2:15 ` bug#3003: 23.0.92; Point trapped in overlay Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2009-04-15 16:44 Leo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k55lpkc8.fsf@cyd.mit.edu \
--to=cyd@stupidchicken.com \
--cc=3003@emacsbugs.donarmstrong.com \
--cc=dominik@uva.nl \
--cc=monnier@iro.umontreal.ca \
--cc=sdl.web@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).