emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs loops on large images


From: Kim F. Storm
Subject: Re: Emacs loops on large images
Date: Tue, 18 Jan 2005 01:21:54 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Lars Hansen <address@hidden> writes:

> When i start Emacs with option -Q, and do
>    M-x auto-image-file-mode
>    C-x C-f foo.jpg
> with foo.jpg beeing an image larger than the Emacs window, Emacs
> loops, i.e. uses 99% processor time.

and later:

> The loop is the while loop in xdisp.c: back_to_previous_visible_line_start.
> It seems that the code searches for a completely visible line, but
> there is no such line because the image is larger than the window.

The old fix for this problem (remove the call to handle_display_prop)
had bad effects in case a display property is put on multiple lines;
vertical-motion could no longer move backwards from that property.

I have devised a different fix for the original problem that seems to
work alright for vertical-motion with multi-line display properties.

Can you please test if you can make emacs loop with my changes.

Thanks.

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]