From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#19873: Ill-formed regular expression is constructed in forward-paragraph. Date: Sun, 15 Feb 2015 10:31:22 +0000 Message-ID: <20150215103122.GA3282@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1423996769 28661 80.91.229.3 (15 Feb 2015 10:39:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2015 10:39:29 +0000 (UTC) To: 19873@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 15 11:39:16 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 1YMwbb-0007I6-Q9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 11:39:15 +0100 Original-Received: from localhost ([::1]:34140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMwbb-0006MB-0I for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 05:39:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMwbT-0006L8-Fx for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 05:39:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMwbO-0005MP-I9 for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 05:39:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMwbO-0005MK-EO for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 05:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YMwbN-0002ey-Ut for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 05:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Feb 2015 10:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19873 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142399673610209 (code B ref -1); Sun, 15 Feb 2015 10:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Feb 2015 10:38:56 +0000 Original-Received: from localhost ([127.0.0.1]:44317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMwbH-0002ea-Rn for submit@debbugs.gnu.org; Sun, 15 Feb 2015 05:38:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59461) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMwbF-0002eN-LL for submit@debbugs.gnu.org; Sun, 15 Feb 2015 05:38:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMwb5-0005JY-9o for submit@debbugs.gnu.org; Sun, 15 Feb 2015 05:38:48 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMwb5-0005JU-72 for submit@debbugs.gnu.org; Sun, 15 Feb 2015 05:38:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMwb0-0006Jm-Hc for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 05:38:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMwav-0005GD-VC for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 05:38:38 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:28511 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMwav-0005G0-LB for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 05:38:33 -0500 Original-Received: (qmail 94991 invoked by uid 3782); 15 Feb 2015 10:31:51 -0000 Original-Received: from acm.muc.de (pD951970A.dip0.t-ipconnect.de [217.81.151.10]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 15 Feb 2015 11:31:50 +0100 Original-Received: (qmail 3374 invoked by uid 1000); 15 Feb 2015 10:31:22 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.22 (2013-10-16) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: 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:99428 Archived-At: Hello, Emacs! In forward-paragraph, L37, a regular expression is constructed as follows: (let* ... (sp-parstart (concat "^[ \t]*\\(?:" parstart "\\|" parsep "\\)")) ...) . Here parstart and parsep are, more or less, paragraph-{start,separate}. The problem is that parstart and parsep themselves are likely to begin with "[ \t]*" (the default values certainly do), so we have two consecutive matchers for an arbitrary amount of whitespace. This causes the regexp engine to run very slowly when a line starts with lots of WS but doesn't match. This problem seems to be the cause of bug # 19846 (where holding down the spacebar inside a C comment causes Emacs to seize up when auto-fill mode is enabled). -- Alan Mackenzie (Nuremberg, Germany).