emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: preview-latex and display problem.


From: Kim F. Storm
Subject: Re: preview-latex and display problem.
Date: 09 May 2004 23:34:19 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Matt Hodges <address@hidden> writes:

> 
> I have encountered redisplay problems with recent builds when using
> preview-latex, and trying to open preview overlays.
> 

David Kastrup <address@hidden> writes:

> The effects are too horrible to describe.  The cursor gets
> reduplicated at other screen locations, screen updates stop
> completely, C-l triggers an "out of range" error, the mode line gets
> overdrawn and so on and so on.
> 


Does the following patch give correct results?


*** xdisp.c     05 May 2004 13:23:27 +0200      1.887
--- xdisp.c     09 May 2004 23:20:56 +0200      
***************
*** 18529,18540 ****
       XFontStruct *font;
       int boff, *total;
  {
!   Lisp_Object val;
    Lisp_Object face_name = Qnil;
    int ascent, descent, height, override;
  
!   val = Fget_char_property (make_number (IT_CHARPOS (*it)),
!                           prop, it->object);
  
    if (NILP (val))
      return val;
--- 18539,18554 ----
       XFontStruct *font;
       int boff, *total;
  {
!   Lisp_Object position, val;
    Lisp_Object face_name = Qnil;
    int ascent, descent, height, override;
  
!   if (STRINGP (it->object))
!     position = make_number (IT_STRING_CHARPOS (*it));
!   else
!     position = make_number (IT_CHARPOS (*it));
! 
!   val = Fget_char_property (position, prop, it->object);
  
    if (NILP (val))
      return val;

-- 
Kim F. Storm  http://www.cua.dk





reply via email to

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