all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Mysterious redisplay problem and a trap in xdisp.c
Date: Sat, 9 Feb 2002 22:17:39 -0700 (MST)	[thread overview]
Message-ID: <200202100517.g1A5Hd106081@aztec.santafe.edu> (raw)
In-Reply-To: <5xheoraead.fsf@kfs2.cua.dk> (storm@cua.dk)

    > While typing in some text in a buffer, emacs suddenly decides to
    > insert a new line instead of the character I typed.  But if I do C-l,
    > there is only one line, and the character I typed magically reappears.

Actually it did not "insert a newline".  This evidence proves that.
The bug is in redisplay.

    If I comment out the call to make_gap_smaller in make_gap, the problem
    goes away!

This may be of some help, but the reliable way to track this down is
to step thru redisplay when the problem happens.  Anything else is
just guesswork.  There is a chance this "clue" will lead someone to
think of a possible cause, but if that doesn't happen, the reliable way
is likely to be the fastest way.

Don't waste your time staring at make_gap_smaller.  You know what
it does.  That's not where the problem is.

Here's what it makes me think of: is there anything in redisplay that
points to a buffer character by its address rather than by its
character number?  Anything that might live across the computation of
the mode line?

Is the problem reliably reproducible now?  If not, maybe you can make
that happen by having some function called from mode-line-format
execute (garbage-collect).



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


  parent reply	other threads:[~2002-02-10  5:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-07 12:59 Mysterious redisplay problem and a trap in xdisp.c Kim F. Storm
2002-02-07 19:47 ` Eli Zaretskii
2002-02-08 13:57 ` Richard Stallman
2002-02-08 20:50 ` Kim F. Storm
2002-02-09  7:25   ` Eli Zaretskii
2002-02-10  5:17   ` Richard Stallman [this message]
2002-02-11  2:09     ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2002-02-09 20:59 Kim F. Storm
2002-02-09 22:42 ` Gerd Moellmann
2002-02-09 23:06   ` Kim F. Storm
2002-02-11  2:09     ` Richard Stallman
2002-02-11  8:27       ` Kim F. Storm

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=200202100517.g1A5Hd106081@aztec.santafe.edu \
    --to=rms@gnu.org \
    --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.