all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: Emacs abort
Date: Thu, 17 Feb 2005 10:43:02 +0100	[thread overview]
Message-ID: <m37jl734k9.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <6b43965beeb68c2526a1535901971c04@rfc.se> (Martin Fredriksson's message of "Tue, 15 Feb 2005 21:42:26 +0100")

Martin Fredriksson <m@rfc.se> writes:

> I have now verified the abort also in Linux.  The abort happens when
> invoking outline-minor-mode 'show-all' after a previous 'hide-body',
> when part of the buffer is not visible (scrolled).  The abort only
> happens when using keys, not when invoking with 'M-x show-all'.
>
> The steps to trigger this are:
>
> (1) gdb ./emacs
>      (gdb) run -q
>
> (2) Open apa.txt, select outline minor mode (M-x outline-minor-mode)
>     and go to end of buffer.
>
> (3) Hide body:
>      C-c @ C-t
>
> (4) Go up two lines (previous-line x 2)
>
> (5) Show all (must be done using keys):
>      C-c @ C-a
>


I still cannot make it fail even on GNU/Linux.

Does it fail if you start emacs -Q ?



Does the following patch fix the problem, or does it cause other
problems?

Index: xdisp.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xdisp.c,v
retrieving revision 1.981
diff -c -r1.981 xdisp.c
*** xdisp.c	16 Feb 2005 23:45:03 -0000	1.981
--- xdisp.c	17 Feb 2005 09:40:56 -0000
***************
*** 13136,13142 ****
        for (; row > first_text_row; --row)
  	{
  	  if (!row->enabled_p || !MATRIX_ROW_DISPLAYS_TEXT_P (row))
! 	    abort ();
  
  	  if (MATRIX_ROW_START_CHARPOS (row) >= last_unchanged_pos_old)
  	    row_found = row;
--- 13140,13146 ----
        for (; row > first_text_row; --row)
  	{
  	  if (!row->enabled_p || !MATRIX_ROW_DISPLAYS_TEXT_P (row))
! 	    break;  /* abort (); */
  
  	  if (MATRIX_ROW_START_CHARPOS (row) >= last_unchanged_pos_old)
  	    row_found = row;

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

  reply	other threads:[~2005-02-17  9:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-15 20:42 Emacs abort Martin Fredriksson
2005-02-17  9:43 ` Kim F. Storm [this message]
2005-02-18  6:23   ` Martin Fredriksson
2005-02-17 10:35 ` Richard Stallman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m37jl734k9.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 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.