[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19873: Ill-formed regular expression is constructed in forward-parag
From: |
Alan Mackenzie |
Subject: |
bug#19873: Ill-formed regular expression is constructed in forward-paragraph. |
Date: |
Sun, 15 Feb 2015 10:31:22 +0000 |
User-agent: |
Mutt/1.5.22 (2013-10-16) |
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).
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#19873: Ill-formed regular expression is constructed in forward-paragraph.,
Alan Mackenzie <=