From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.bugs Subject: bug#12196: 24.1.50; setting cache-long-line-scans to non-nil freezes Emacs Date: Mon, 10 Sep 2012 14:19:00 +0100 (BST) Message-ID: <87mx0y9fss@ch.ristopher.com> References: <87has6ysxn.fsf@web.de> <834no4jeoa.fsf@gnu.org> <87ehmwscrt.fsf@web.de> <83ehmwh0pn.fsf@gnu.org> <87sjb9g981@ch.ristopher.com> <83oblrqwc1.fsf@gnu.org> <877gs218a3@ch.ristopher.com> <83ligikuam.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347283250 9299 80.91.229.3 (10 Sep 2012 13:20:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 13:20:50 +0000 (UTC) Cc: 12196@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 10 15:20:52 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 1TB3v2-0005KU-2a for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 15:20:52 +0200 Original-Received: from localhost ([::1]:40154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB3uy-0000JO-FA for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 09:20:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB3up-0000Ix-So for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 09:20:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB3ud-0001fJ-Nk for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 09:20:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB3ud-0001f9-KF for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 09:20:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TB3vB-0007Jv-W0 for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 09:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Schmidt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Sep 2012 13:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12196 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134728320427960 (code B ref -1); Mon, 10 Sep 2012 13:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Sep 2012 13:20:04 +0000 Original-Received: from localhost ([127.0.0.1]:51629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB3uG-0007Gt-Eb for submit@debbugs.gnu.org; Mon, 10 Sep 2012 09:20:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42527) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB3uD-0007GK-B5 for submit@debbugs.gnu.org; Mon, 10 Sep 2012 09:20:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB3tY-0000zN-K8 for submit@debbugs.gnu.org; Mon, 10 Sep 2012 09:19:26 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:49597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB3tY-0000zF-Gg for submit@debbugs.gnu.org; Mon, 10 Sep 2012 09:19:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB3tR-000769-QG for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 09:19:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB3tG-0000vQ-Qb for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 09:19:13 -0400 Original-Received: from ristopher.com ([146.185.21.93]:56012 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB3tG-0000vE-HM; Mon, 10 Sep 2012 09:19:02 -0400 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id D70A720DC2; Mon, 10 Sep 2012 14:19:00 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1347283140; bh=laHcD6jcCQUHkHrTdGAV6pMkDIp0MRCnrPkkcumqDek=; h=From:To:Cc:Subject:In-Reply-To:Message-ID:References:MIME-Version: Content-Type:Date; b=DImq6J9kvAfC7qnHnlpK48QbRmsHIebCoCzxoRQqOtA/AeDnawOeMF50p55jfoqif voCAl96nw5+aNh073BaHYTEmktpVh2g6tLgIV79R3d0QhGREZiAbNUHyPXrEXa6yjX 62Om+0ML5++G+ZzxWSFUBMQ5oU0qbSXqljhRhUxs= In-Reply-To: <83ligikuam.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 10 Sep 2012 14:10:25 +0300") Mail-Followup-To: Eli Zaretskii , bug-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:64038 Archived-At: Eli Zaretskii writes: > Thanks. Does the patch below help? > === modified file 'src/search.c' > --- src/search.c 2012-09-04 17:34:54 +0000 > +++ src/search.c 2012-09-10 11:07:13 +0000 > @@ -681,10 +681,11 @@ scan_buffer (register int target, ptrdif > to see where we can avoid some scanning. */ > if (target == '\n' && newline_cache) > { > - ptrdiff_t next_change; > + ptrdiff_t next_change = 0; > immediate_quit = 0; > while (region_cache_forward > - (current_buffer, newline_cache, start_byte, &next_change)) > + (current_buffer, newline_cache, start_byte, &next_change) > + || next_change == Z) > start_byte = next_change; > immediate_quit = allow_quit; Unfortunately it does not. Emacs now loops indefinitely right during startup. In this case, next_change is always equal to Z and the while loop is never exited. Christopher