* Image display problems in Gnus
[not found] <85hczbj1a3.fsf@lola.goethe.zz>
@ 2006-09-13 14:40 ` Kim F. Storm
2006-09-13 14:59 ` Jason Rumney
2006-09-14 10:57 ` Kim F. Storm
0 siblings, 2 replies; 5+ messages in thread
From: Kim F. Storm @ 2006-09-13 14:40 UTC (permalink / raw)
Cc: emacs-devel
David Kastrup <dak@gnu.org> writes:
Ref: [Reiner Steib] [AUCTeX-devel] toolbar-x.el modifies global value of `tool-bar-map'
> Ok, this mail behaves _really_ weird with regard to images. Hopefully
> you are using gnus as a mail reader (and the geometry is suitable
> similar to mine).
I don't see the problem, but perhaps it is because your signature
was appended to the original mail.
However, I know there is a problem with images at the end of a message
in Gnus article buffers!
It is somehow related to the image being shown as part of an overlay
on the last newline character in the buffer (or some such), followed by another overlay covering the rest of the article (the signature).
I didn't quite figure out what Gnus does though.
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.
I've been trying hard to find a way to fix that, but as I said in my
message about the recent fixes to improve image scrolling, it works
for "normal images" ... and I should have added under "normal
circumstances".
I think this may be easier to fix this in Gnus than in redisplay!!
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Image display problems in Gnus
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
2006-09-14 10:57 ` Kim F. Storm
1 sibling, 1 reply; 5+ messages in thread
From: Jason Rumney @ 2006-09-13 14:59 UTC (permalink / raw)
Cc: emacs-devel
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Image display problems in Gnus
2006-09-13 14:59 ` Jason Rumney
@ 2006-09-14 10:56 ` Kim F. Storm
0 siblings, 0 replies; 5+ messages in thread
From: Kim F. Storm @ 2006-09-14 10:56 UTC (permalink / raw)
Cc: emacs-devel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Image display problems in Gnus
2006-09-13 14:40 ` Image display problems in Gnus Kim F. Storm
2006-09-13 14:59 ` Jason Rumney
@ 2006-09-14 10:57 ` Kim F. Storm
2006-09-14 13:01 ` Jason Rumney
1 sibling, 1 reply; 5+ messages in thread
From: Kim F. Storm @ 2006-09-14 10:57 UTC (permalink / raw)
Cc: emacs-devel
storm@cua.dk (Kim F. Storm) writes:
> I've been trying hard to find a way to fix that, but as I said in my
> message about the recent fixes to improve image scrolling, it works
> for "normal images" ... and I should have added under "normal
> circumstances".
I have just installed a small fix to produce_image_glyph which seems
to fix the behavior in Gnus.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Image display problems in Gnus
2006-09-14 10:57 ` Kim F. Storm
@ 2006-09-14 13:01 ` Jason Rumney
0 siblings, 0 replies; 5+ messages in thread
From: Jason Rumney @ 2006-09-14 13:01 UTC (permalink / raw)
Cc: emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 564 bytes --]
Kim F. Storm wrote:
> storm@cua.dk (Kim F. Storm) writes:
>
>
>> I've been trying hard to find a way to fix that, but as I said in my
>> message about the recent fixes to improve image scrolling, it works
>> for "normal images" ... and I should have added under "normal
>> circumstances".
>>
>
> I have just installed a small fix to produce_image_glyph which seems
> to fix the behavior in Gnus.
>
This seems to have fixed the following bug from FOR-RELEASE as well:
** Markus Gritsch's report about Emacs looping on Windoze with the
following...
[-- Attachment #1.2: Type: text/html, Size: 1036 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-09-14 13:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
2006-09-14 10:57 ` Kim F. Storm
2006-09-14 13:01 ` Jason Rumney
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.