From: Eli Zaretskii <eliz@gnu.org>
To: Leo <sdl.web@gmail.com>
Cc: cyd@gnu.org, 11417@debbugs.gnu.org
Subject: bug#11417: 24.0.96; infinite looping in xdisp.c
Date: Thu, 10 May 2012 20:43:26 +0300 [thread overview]
Message-ID: <83bolwyls1.fsf@gnu.org> (raw)
In-Reply-To: <m1pqacflc3.fsf@gmail.com>
> From: Leo <sdl.web@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, 11417@debbugs.gnu.org
> Date: Thu, 10 May 2012 17:15:40 +0800
>
>
> [1:text/plain Hide]
>
> On 2012-05-08 11:37 +0800, Chong Yidong wrote:
> > I also am puzzled by where the display string "!" causing the problem
> > comes from. The only appearance of a "!" in Flymake is applied to the
> > mode-line, not as a display string within the buffer text. Neither
> > Flymake nor Python mode seem to use overlay display strings.
> >
> > Do you have any idea what "!" is used for in your buffer?
>
> Just realised this was triggered by me patching flymake to support
> fringe indicator.
That was the crucial missing link in this mystery.
> OK, I have prepared a test case. It requires python and the package
> pyflakes¹ which is used by flymake. Normally one can install pyflakes by
> using:
>
> pip install pyflakes
> OR
> easy_install pyflakes
>
> in a terminal.
>
> Decompress the attached tar ball and go into the directory 11417/ in a
> terminal and launch emacs like this:
>
> emacs -nw -q -L . -l bug.el setup.py
>
> You should see a buffer with contents partially displayed. Move around
> in that buffer by typing C-v, M-v, C-n or C-p until it freezes (it
> usually takes me no more than 3 key strokes).
Thanks. Now that I know how you patched flymake, I can reproduce this
with a much simpler recipe:
emacs -Q -nw
C-x C-f xdisp.c RET
M-: (let ((ov (make-overlay 4928 4933 nil t t)) (fringe (propertize "!" 'display (list 'left-fringe 'question-mark)))) (overlay-put ov 'before-string fringe)) RET
(The last one is a single long line to type into the minibuffer.)
Redisplay only shows part of the screen after that, but Emacs doesn't
yet infloop. Move a cursor a bit, and it will.
Of course, the choice of the file (xdisp.c) and the position where to
put the overlay are arbitrary.
This only happens in 'emacs -nw", a GUI session (which can actually
display the fringe bitmap) doesn't have any problems with this recipe.
I will work on fixing this.
next prev parent reply other threads:[~2012-05-10 17:43 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-06 4:24 bug#11417: 24.0.96; infinite looping in xdisp.c Leo
2012-05-06 5:43 ` Chong Yidong
2012-05-06 16:18 ` Eli Zaretskii
2012-05-07 16:17 ` Leo
2012-05-07 17:25 ` Eli Zaretskii
2012-05-07 18:39 ` Leo
2012-05-07 19:21 ` Eli Zaretskii
2012-05-07 19:42 ` Leo
2012-05-08 3:37 ` Chong Yidong
2012-05-08 17:26 ` Eli Zaretskii
2012-05-10 9:15 ` Leo
2012-05-10 17:43 ` Eli Zaretskii [this message]
2012-05-10 18:26 ` Eli Zaretskii
2012-05-11 10:00 ` Leo
2012-05-12 10:45 ` Eli Zaretskii
2012-05-13 1:34 ` Chong Yidong
2012-05-13 15:37 ` Eli Zaretskii
2012-05-13 8:54 ` Leo
2012-05-13 15:38 ` Eli Zaretskii
2012-05-15 6:33 ` Leo
2012-05-15 15:57 ` Eli Zaretskii
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=83bolwyls1.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=11417@debbugs.gnu.org \
--cc=cyd@gnu.org \
--cc=sdl.web@gmail.com \
/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).