From: Ivan Andrus <darthandrus@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 11133@debbugs.gnu.org
Subject: bug#11133: 24.0.94; Cursor gets "stuck" on an indented line with wrapped overlay
Date: Fri, 30 Mar 2012 18:49:32 +0200 [thread overview]
Message-ID: <BA5AE328-EE41-4825-A424-FD0148BB20CB@gmail.com> (raw)
In-Reply-To: <83y5qiyso5.fsf@gnu.org>
On Mar 30, 2012, at 6:12 PM, Eli Zaretskii wrote:
>> From: Ivan Andrus <darthandrus@gmail.com>
>> Date: Fri, 30 Mar 2012 16:47:05 +0200
>>
>> Put the following (including comments) in a buffer and evaluate.
>>
>> #+begin_src emacs-lisp
>> ;; Note that the next line is indented
>> ;; This buffer is for notes you don't want to save, and for Lisp evaluation.;; If you want to create a file, visit that file with C-x C-f,;; then enter the text in that file's own buffer.
>>
>> ;; evaluate this
>> (let ((ov (make-overlay
>> (progn (goto-char (point-min))
>> (forward-line)
>> (back-to-indentation)
>> (point))
>> (progn (end-of-line)
>> (point))
>> nil t nil)))
>> (overlay-put ov 'display
>> (make-string 500 ?b)))
>>
>> #+end_src
>>
>> Now run `previous-line' several times and it will get stuck at the
>> indentation of the bbbbb line. If you have an extremely wide screen you
>> may need to shrink the emacs window so that the bbbb line wraps. Also
>> note that running `previous-line' with a large prefix-argument will
>> move past the line
>
> More accurately, "large enough" is the number of screen lines taken by
> the overlay string. In my case, it was 7.
>
>> This does not seem to be a problem in Emacs 22.1.1 in a terminal which
>> is the only other emacs I have easy access to.
>
> This is a bug in visual line movement. Visual line movement was
> introduced in Emacs 23, that's why you don't see this in Emacs 22. In
> Emacs 23, the cursor gets stuck similarly, so this is not a regression
> wrt Emacs 23. Disable line-move-visual with the current 24 trunk, and
> the problem will go away in Emacs 24 as well.
>
> I will take a look when I have time.
That makes sense.
Thanks,
Ivan
next prev parent reply other threads:[~2012-03-30 16:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-30 14:47 bug#11133: 24.0.94; Cursor gets "stuck" on an indented line with wrapped overlay Ivan Andrus
2012-03-30 16:12 ` Eli Zaretskii
2012-03-30 16:49 ` Ivan Andrus [this message]
2012-04-06 15:48 ` Eli Zaretskii
2012-04-07 4:10 ` Stefan Monnier
2012-04-07 7:57 ` 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=BA5AE328-EE41-4825-A424-FD0148BB20CB@gmail.com \
--to=darthandrus@gmail.com \
--cc=11133@debbugs.gnu.org \
--cc=eliz@gnu.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.