all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: Ok, here is the bug I have been looking for.  Kim, not Jan...
Date: Tue, 01 Mar 2005 09:34:37 +0100	[thread overview]
Message-ID: <m3bra3ix2a.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <x5sm3gm070.fsf@lola.goethe.zz> (David Kastrup's message of "Tue, 01 Mar 2005 05:58:43 +0100")

David Kastrup <dak@gnu.org> writes:

> With -fno-crossjumping, the real assert came to light.
>
> It is xdisp.c in line 6122:
>
>   /* The function move_it_vertically_backward may move over more
>      than the specified y-distance.  If it->w is small, e.g. a
>      mini-buffer window, we may end up in front of the window's
>      display area.  Start displaying at the start of the line
>      containing PT in this case.  */
>   if (it.current_y <= 0)
>     {
>       init_iterator (&it, w, PT, PT_BYTE, NULL, DEFAULT_FACE_ID);
>       move_it_vertically_backward (&it, 0);
>       xassert (IT_CHARPOS (it) <= PT);
>       it.current_y = 0;
>     }
>
> I suppose that the reseat_1 in move_it_vertically_backward will move
> forward again.  Something like that.

True.  This can happen if PT is invisible text or in text that is
replaced by an image.  I guess it is related to a bug that I still
have to investigate (see below).

I think you can safely disable the xassert with #if 0 for now.


The bug reveals itself like this:

Suppose you have a window with this context

abc
[     ]
[IMAGE]xyz
[     ]
def

Now, if you place the cursor at 'z' and hit C-a, it moves to 'x'.
Also, M-: (bolp) returns t at that position.

I haven't fully debugged this, but it seems to happen when the text
overlayed by the IMAGE includes or ends with a newline.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2005-03-01  8:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-01  4:58 Ok, here is the bug I have been looking for. Kim, not Jan David Kastrup
2005-03-01  8:34 ` Kim F. Storm [this message]
2005-03-01 23:24   ` Kim F. Storm
2005-03-01 23:52     ` David Kastrup
2005-03-02  8:47       ` Kim F. Storm
2005-03-02 10:28       ` Miles Bader
2005-03-02 11:01         ` David Kastrup
2005-03-02 11:44         ` Kim F. Storm
2005-03-02 12:12           ` Miles Bader
2005-03-02 23:10             ` Kim F. Storm
2005-03-02 23:40               ` David Kastrup
2005-03-02 23:58               ` Miles Bader
2005-03-03 12:57                 ` Kim F. Storm
2005-03-04 16:48                   ` Jan D.
2005-03-06 21:16                     ` Kim F. Storm

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=m3bra3ix2a.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@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.