From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: Image display problems in Gnus
Date: Thu, 14 Sep 2006 12:56:13 +0200 [thread overview]
Message-ID: <m3mz92pvhu.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <45081CE2.6070707@gnu.org> (Jason Rumney's message of "Wed\, 13 Sep 2006 15\:59\:46 +0100")
Jason Rumney <jasonr@gnu.org> writes:
> Kim F. Storm wrote:
>> This causese problems for the redisplay engine when it tries to figure
>> out where to display the cursor -- and it ends up displaying it at
>> some position which is not visible in the window.
>>
>> This triggers the recenting code in redisplay which wants the cursor
>> position to be displayed in the window. But this still results in
>> the cursor in some invalid position....
>>
>> .. and finally, the redisplay has some code which catches this
>> anomaly and displays the cursor in the upper left corner of the window
>> instead.
>>
> Where is the code that catches this? I have been trying to investigate
> a Windows specific bug listed in FOR-RELEASE the last couple of days,
> where the same seems to be happening with the splash screen image,
> except Emacs never catches it and it keeps looping. I can see that on
> X, Emacs catches it as you explain there.
I don't think it is X specific.
I'm not 100% sure, but I think it is this code in xdisp.c:
/* Consider the following case: Window starts at BEGV, there is
invisible, intangible text at BEGV, so that display starts at
some point START > BEGV. It can happen that we are called with
PT somewhere between BEGV and START. Try to handle that case. */
if (w->cursor.vpos < 0)
{
struct glyph_row *row = w->current_matrix->rows;
if (row->mode_line_p)
++row;
set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0);
}
It just seems to be triggered by some other special case where
displaying an image at the end of the window causes the cursor
to be placed "outside the window".
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2006-09-14 10:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <85hczbj1a3.fsf@lola.goethe.zz>
2006-09-13 14:40 ` Image display problems in Gnus Kim F. Storm
2006-09-13 14:59 ` Jason Rumney
2006-09-14 10:56 ` Kim F. Storm [this message]
2006-09-14 10:57 ` Kim F. Storm
2006-09-14 13:01 ` Jason Rumney
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=m3mz92pvhu.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 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).