unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tak Ota <Takaaki.Ota@am.sony.com>
Cc: emacs-devel@gnu.org
Subject: Re: xdisp.c problem?
Date: Thu, 30 Jan 2003 09:39:07 -0800 (PST)	[thread overview]
Message-ID: <20030130.093907.60852782.Takaaki.Ota@am.sony.com> (raw)
In-Reply-To: <200301300351.MAA18471@etlken.m17n.org>

Thu, 30 Jan 2003 12:51:03 +0900 (JST): Kenichi Handa <handa@m17n.org> wrote:

> In article <20030129.174125.01368882.Takaaki.Ota@am.sony.com>, Tak Ota <Takaaki.Ota@am.sony.com> writes:
> >>  > 2003-01-29  Kenichi Handa  <handa@m17n.org>
> >>  > 	* xdisp.c (set_cursor_from_row): Pay attention to string display
> >>  > 	properties.
> >>  
> >>  > This change causes emacs to get hung when I try to view a message of
> >>  > the following type.  Switching back to the old xdisp.c eliminates the
> >>  > problem.
> >>  
> >>  > Content-Type: text/html; charset="euc-kr"
> >>  
> >>  Could you show me exactly what to do to reproduce that bug?
> 
> > I tried to isolate the case from the entire circumstance, which is
> > using Mew package to view email messages.  I was not successful.  It
> > happens only when I try to view certain messages.  C-g does not break
> > emacs once it gets trapped in this situation.  There is one more fact
> > I have gained by tracing elisp execution.  The last lisp function
> > called is `overlay-put' and the emacs stops responding after that.  I
> > used C debugger to follow the trace from entry to `overlay-put' but
> > could not conclusion anything meaningful.
> 
> Please check if Emacs is in an infinite loop or not, and if
> it's in an infinite loop, find in which part of code it's
> executing.

I'll try it later.  While I played with the problem a bit more
yesterday I narrowed it to the following action.

(overlay-put
 (make-overlay (point-max) (point-max))
 'before-string
 "[End of message]")

The difficulty to reproduce this for you is that it is buffer content
dependent.  If I save the buffer to a file the text properties are
gone.  I don't know if text properties are relevant to this problem
but saving the buffer to a file and revisiting it and performing above
action does not produce the problem anymore.  Is there a way to save
the complete buffer information to a file including text properties?

> It's not likely that the modified function
> set_cursor_from_row itself has an infinite loop, but it may
> set cursor position to where the other display engine code
> don't expect.

I agree with your insight.

-Tak

  reply	other threads:[~2003-01-30 17:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-29 23:33 xdisp.c problem? Tak Ota
2003-01-30  0:00 ` Kenichi Handa
2003-01-30  1:41   ` Tak Ota
2003-01-30  3:51     ` Kenichi Handa
2003-01-30 17:39       ` Tak Ota [this message]
2003-01-30 21:13       ` Tak Ota
2003-01-30 23:56         ` Tak Ota
2003-01-31  3:58           ` Kenichi Handa
2003-01-31  2:47             ` Masatake YAMATO
2003-01-31  6:05               ` Kenichi Handa
2003-01-31  6:01                 ` Masatake YAMATO
2003-01-31 17:34             ` Tak Ota
2003-01-31 19:19           ` Richard Stallman
2003-01-30 16:57     ` Masatake YAMATO
2003-01-31  0:35       ` Tak Ota
2003-01-31  2:16         ` Masatake YAMATO

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20030130.093907.60852782.Takaaki.Ota@am.sony.com \
    --to=takaaki.ota@am.sony.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).