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

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

Re: Emacs aborts (xassert) when PageUp key used in semi-binary file


From: Kim F. Storm
Subject: Re: Emacs aborts (xassert) when PageUp key used in semi-binary file
Date: Tue, 15 Feb 2005 15:52:47 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Tim Van Holder <address@hidden> writes:

> On Mon, 14 Feb 2005 12:18:03 +0100, Kim F. Storm <address@hidden> wrote:
>> 
>> Hi Tim,
>> 
>> I cannot reproduce it even with your data.
>> 
>> Can you try starting from emacs -Q and see if the problem happens there?
>
> I've traced the abort to a customization of the mode-line face.
> I have ":box (:line-width 2 :style released-button)" set on it (in
> customize-face terms: box around text, width 2, Raised), to give the
> mode line a 3D look; if I remove this, the abort no longer occurs.

Does this patch give good results?

*** xdisp.c     15 Feb 2005 15:51:05 +0100      1.979
--- xdisp.c     15 Feb 2005 15:52:16 +0100      
***************
*** 5819,5829 ****
    saved_glyph_row = it->glyph_row;
    it->glyph_row = NULL;
  
! #define BUFFER_POS_REACHED_P()                        \
!   ((op & MOVE_TO_POS) != 0                    \
!    && BUFFERP (it->object)                    \
!    && IT_CHARPOS (*it) >= to_charpos          \
!    && it->method == next_element_from_buffer)
  
    while (1)
      {
--- 5819,5832 ----
    saved_glyph_row = it->glyph_row;
    it->glyph_row = NULL;
  
! #define BUFFER_POS_REACHED_P()                                        \
!   ((op & MOVE_TO_POS) != 0                                    \
!    && BUFFERP (it->object)                                    \
!    && IT_CHARPOS (*it) >= to_charpos                          \
!    && (it->method == next_element_from_buffer ||              \
!        (it->method == next_element_from_display_vector &&     \
!       it->dpvec + it->current.dpvec_index + 1 >= it->dpend)))
! 
  
    while (1)
      {

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





reply via email to

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