From: Lars Ingebrigtsen <larsi@gnus.org>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: 10222@debbugs.gnu.org
Subject: bug#10222: intangible property and sentence movement
Date: Thu, 27 Jan 2022 18:50:54 +0100 [thread overview]
Message-ID: <87fsp9kqyp.fsf@gnus.org> (raw)
In-Reply-To: <87k46b2oen.fsf@tsdh.uni-koblenz.de> (Tassilo Horn's message of "Mon, 05 Dec 2011 13:28:32 +0100")
Tassilo Horn <tassilo@member.fsf.org> writes:
> (defun hide-every-2nd-line ()
> (interactive)
> (while t
> (next-line 2)
> (let ((ol (make-overlay (line-beginning-position)
> (line-end-position))))
> (overlay-put ol 'invisible t)
> (overlay-put ol 'intangible t))))
>
> 3. C-h t (use the tutorial as test buffer)
> 4. M-x hide-every-2nd-line RET
> So now we have the TUTORIAL buffer where every second line is invisible
> and intangible and point is at `point-max'. In this situation, there
> are two problems with the M-a and M-e.
>
> 1. In some situations, M-a/M-e don't move at all. (I think, that's
> the case, if the sentence start/end is inside a hidden line, but
> I'm not too sure.)
>
> For example, when point is at point-max, I can hit M-a once so that
> point is at the beginning of the invisible line below the "Please
> read the file COPYING...". Hitting M-a again has no effect
> anymore.
>
> (BTW: This "M-a/M-e don't move issue" is also present in the bug
> messages buffer.)
>
> 2. At some positions in that file, invoking M-a/M-e will make emacs
> hang. Try hitting M-e repeatedly beginning at the start of the
> buffer. After the second M-e, point is after "See end for copying
> conditions.". Hitting it again makes emacs hang.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Testing this recipe in Emacs 29, I don't see any hangs with those
commands, but perhaps you need to put point in certain particular
places -- or perhaps this has been fixed in the years since it was
reported.
Are you still seeing this issue in recent Emacs versions?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2022-01-27 17:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-05 12:28 bug#10222: 24.0.92; Sentence movement commands make emacs hang Tassilo Horn
2011-12-05 14:08 ` Stefan Monnier
2011-12-05 15:41 ` Tassilo Horn
2011-12-05 16:55 ` Stefan Monnier
2011-12-05 19:31 ` Tassilo Horn
2011-12-10 12:11 ` Johan Bockgård
2022-01-27 17:50 ` Lars Ingebrigtsen [this message]
2022-01-27 20:12 ` bug#10222: intangible property and sentence movement Tassilo Horn
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fsp9kqyp.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=10222@debbugs.gnu.org \
--cc=tassilo@member.fsf.org \
/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 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.