From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 9034@debbugs.gnu.org
Subject: bug#9034: point adjustment after `end-of-visual-line' moves to the next line
Date: Mon, 11 Jul 2011 12:27:18 +0400 [thread overview]
Message-ID: <87tyat1au1.fsf@gmail.com> (raw)
In-Reply-To: <jwvtyato3lq.fsf-monnier+emacs@gnu.org>
On Mon, 11 Jul 2011 00:16:31 -0400, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> > If a line ends with invisible text, point adjustment moves to the next
> > line after `end-of-visual-line'. To reproduce run:
>
> > (progn (switch-to-buffer "test")
> > (insert "aline1\nbline2\ncline3\n")
> > (put-text-property 7 14 'invisible t) ; region [\nbline2]
> > (goto-char (point-min)))
>
> > After that in the test buffer do M-: (progn (end-of-visual-line)
> > (point)). `end-of-visual-line' moves point to position 14 as expected.
> > But after that the point is adjusted to position 15, as can be checked
> > by C-x =.
>
> > Sometimes the point is not adjusted to position 15 the first time you
> > run `end-of-visual-line'. But it is if you run it more than once.
> > Perhaps it is related to the last point position.
>
> I can reproduce it with M-: (progn (goto-char 14) > (point))
>
indeed
> > Also, `move-end-of-line` always behaves correctly, so it it something
> > specific to `end-of-visual-line' or `vertical-motion'.
>
> Apparently not since I can reproduce the problem with just goto-char.
If visual-line-mode is enabled (so that C-e is mapped to
`end-of-visual-line' instead of `move-end-of-line'),
`end-of-visual-line' works correctly when run with C-e.
> Maybe it has to do with the use of M-: instead.
>
Seems plausible.
Regards,
Dmitry
>
> Stefan
next prev parent reply other threads:[~2011-07-11 8:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-09 13:04 bug#9034: point adjustment after `end-of-visual-line' moves to the next line Dmitry Kurochkin
2011-07-11 4:16 ` Stefan Monnier
2011-07-11 8:27 ` Dmitry Kurochkin [this message]
2021-08-25 16:32 ` bug#9034: point adjustment (with invisible text) " Lars Ingebrigtsen
2021-08-25 16:43 ` Eli Zaretskii
2021-08-26 13:48 ` Lars Ingebrigtsen
2021-08-26 15:46 ` Eli Zaretskii
2021-08-26 16:33 ` Lars Ingebrigtsen
2021-08-26 16:48 ` Eli Zaretskii
2021-08-26 17:05 ` Lars Ingebrigtsen
2021-08-26 17:13 ` Eli Zaretskii
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=87tyat1au1.fsf@gmail.com \
--to=dmitry.kurochkin@gmail.com \
--cc=9034@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.