From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=E5=BC=A0=E6=B5=B7=E5=90=9B?= Newsgroups: gmane.emacs.bugs Subject: bug#21205: Error during redisplay: (jit-lock-function 3491) Date: Mon, 10 Aug 2015 22:43:26 +0800 Message-ID: <786E8547-4CDE-4693-B13B-0EAAEEA64045@icloud.com> References: <368A8AC0-E908-4419-A05C-0B0CEA6F0521@icloud.com> <83zj23qmx9.fsf@gnu.org> <20150807205255.GA2653@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1439217866 24930 80.91.229.3 (10 Aug 2015 14:44:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2015 14:44:26 +0000 (UTC) Cc: "21205@debbugs.gnu.org" <21205@debbugs.gnu.org> To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 10 16:44:14 2015 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 1ZOoJB-0002hI-Rr for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Aug 2015 16:44:14 +0200 Original-Received: from localhost ([::1]:58668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOoJB-0008DO-8r for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Aug 2015 10:44:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOoJ6-0008CQ-Si for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 10:44:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOoJ5-0002Ua-Se for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 10:44:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOoJ0-0002TI-Le; Mon, 10 Aug 2015 10:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZOoJ0-0008H3-8k; Mon, 10 Aug 2015 10:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E5=BC=A0=E6=B5=B7=E5=90=9B?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 10 Aug 2015 14:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21205 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 21205-submit@debbugs.gnu.org id=B21205.143921782231773 (code B ref 21205); Mon, 10 Aug 2015 14:44:02 +0000 Original-Received: (at 21205) by debbugs.gnu.org; 10 Aug 2015 14:43:42 +0000 Original-Received: from localhost ([127.0.0.1]:52287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOoIf-0008GO-SS for submit@debbugs.gnu.org; Mon, 10 Aug 2015 10:43:42 -0400 Original-Received: from st13p27im-asmtp002.me.com ([17.162.190.64]:39180) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOoIb-0008GD-UQ for 21205@debbugs.gnu.org; Mon, 10 Aug 2015 10:43:39 -0400 Original-Received: from [192.168.1.112] (unknown [218.109.251.222]) by st13p27im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTPSA id <0NSV0092FFKJ0O00@st13p27im-asmtp002.me.com> for 21205@debbugs.gnu.org; Mon, 10 Aug 2015 14:43:36 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-08-10_02:2015-08-10, 2015-08-10, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1508100222 X-Mailer: iPhone Mail (12F70) In-reply-to: <20150807205255.GA2653@acm.fritz.box> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:105387 Archived-At: Yes, it is fixed. Thanks for your great work! > =D4=DA 2015=C4=EA8=D4=C28=C8=D5=A3=AC04:52=A3=ACAlan Mackenzie =D0=B4=B5=C0=A3=BA >=20 > Hello, Eli and Netjune. >=20 > On Fri, Aug 07, 2015 at 03:54:10PM +0300, Eli Zaretskii wrote: >>> From: =D5=C5=BA=A3=BE=FD >>> Date: Fri, 07 Aug 2015 18:43:54 +0800 >=20 >>> Run emacs with "emacs -Q", and then eval the following code: >>> ------------------------------------------------------------ >>> (setq font-lock-maximum-decoration 2 >>> jit-lock-defer-time 0.05) >>> (setq-default show-trailing-whitespace t) >>> ------------------------------------------------------------ >=20 >>> Then open the attached c file, and scroll down the buffer with key C-v C= -v ... until the end of buffer. >>> Switch to the message buffer *Message*. There are some error message as t= he following: >>> ------------------------------------------------------------------------= ------ >>> Error during redisplay: (jit-lock-function 3102) signaled (error "Invali= d search bound (wrong side of point)") >=20 >> The errors are triggered by c-syntactic-re-search-forward. Here's the >> backtrace from the first such error, with the current master: >=20 > [ .... ] >=20 >> Lisp Backtrace: >> "re-search-forward" (0x825430) >> "c-syntactic-re-search-forward" (0x8259f0) >> "c-font-lock-declarators" (0x825fd0) >> 0x1c9cda0 PVEC_COMPILED >> "font-lock-fontify-keywords-region" (0x826b30) >> "font-lock-default-fontify-region" (0x8270d0) >> "c-font-lock-fontify-region" (0x827680) >> "font-lock-fontify-region" (0x827c28) >=20 > [ .... ] >=20 > Thanks for that, Eli! It made it fairly easy to track down the bug, > which was simply failing to check if point had advanced too far at one > critical place in c-font-lock-declarators. >=20 > Netjune: would you please try out the following patch (it should apply > cleanly to the cc-fonts.el in ..../emacs-24.5/lisp/progmodes/), and > confirm that the bug has been fixed, or tell me what is still causing > problems. >=20 >=20 >=20 > diff -r 88b4140d56af cc-fonts.el > --- a/cc-fonts.el Tue May 12 10:03:55 2015 +0000 > +++ b/cc-fonts.el Fri Aug 07 20:41:38 2015 +0000 > @@ -1141,6 +1141,7 @@ > (looking-at "{")) > (c-safe (c-forward-sexp) t) ; over { .... } > t) > + (< (point) limit) > ;; FIXME: Should look for c-decl-end markers here; > ;; we might go far into the following declarations > ;; in e.g. ObjC mode (see e.g. methods-4.m). >=20 >=20 > Thanks for the bug report! >=20 > --=20 > Alan Mackenzie (Nuremberg, Germany).