From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11417: 24.0.96; infinite looping in xdisp.c Date: Thu, 10 May 2012 20:43:26 +0300 Message-ID: <83bolwyls1.fsf@gnu.org> References: <83havt4716.fsf@gnu.org> <83havr3nv2.fsf@gnu.org> <837gwn3ihi.fsf@gnu.org> <87havrcpi1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1336671977 21791 80.91.229.3 (10 May 2012 17:46:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 17:46:17 +0000 (UTC) Cc: cyd@gnu.org, 11417@debbugs.gnu.org To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 10 19:46:15 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSXRH-0001HG-PP for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 May 2012 19:46:08 +0200 Original-Received: from localhost ([::1]:40183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSXRH-0001Y2-5b for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 May 2012 13:46:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSXRE-0001Xl-0L for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 13:46:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSXRC-00024i-3i for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 13:46:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSXRB-00024a-VB for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 13:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SSXRB-00021B-PT for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 13:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 May 2012 17:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11417 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11417-submit@debbugs.gnu.org id=B11417.13366719247704 (code B ref 11417); Thu, 10 May 2012 17:46:01 +0000 Original-Received: (at 11417) by debbugs.gnu.org; 10 May 2012 17:45:24 +0000 Original-Received: from localhost ([127.0.0.1]:47068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSXQa-00020C-E5 for submit@debbugs.gnu.org; Thu, 10 May 2012 13:45:24 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:39215) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSXQX-0001zw-7J for 11417@debbugs.gnu.org; Thu, 10 May 2012 13:45:22 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M3T00L00IIXXS00@a-mtaout23.012.net.il> for 11417@debbugs.gnu.org; Thu, 10 May 2012 20:45:14 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M3T00LSYINDSH60@a-mtaout23.012.net.il>; Thu, 10 May 2012 20:45:14 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59912 Archived-At: > From: Leo > Cc: Eli Zaretskii , 11417@debbugs.gnu.org > Date: Thu, 10 May 2012 17:15:40 +0800 >=20 >=20 > [1:text/plain Hide] >=20 > On 2012-05-08 11:37 +0800, Chong Yidong wrote: > > I also am puzzled by where the display string "!" causing the pro= blem > > comes from. The only appearance of a "!" in Flymake is applied t= o the > > mode-line, not as a display string within the buffer text. Neith= er > > Flymake nor Python mode seem to use overlay display strings. > > > > Do you have any idea what "!" is used for in your buffer? >=20 > 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=B9 which is used by flymake. Normally one can install pyfl= akes by > using: >=20 > pip install pyflakes > OR > easy_install pyflakes >=20 > in a terminal. >=20 > Decompress the attached tar ball and go into the directory 11417/ i= n a > terminal and launch emacs like this: >=20 > emacs -nw -q -L . -l bug.el setup.py >=20 > You should see a buffer with contents partially displayed. Move aro= und > 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 thi= s 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.