[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why regex with * get 'File mode specification error: (error "Stack overf
From: |
Oleksandr Gavenko |
Subject: |
Why regex with * get 'File mode specification error: (error "Stack overflow in regexp matcher")' |
Date: |
Tue, 18 Jan 2011 16:59:22 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
On top of log file I usually place
-*- mode: compilation-minor; mode: auto-revert-tail; default-directory:
"~/devel" -*-
My errors format in log is GNU.
I put additional matcher (which not work in my case, for KEIL compiler):
(add-to-list 'compilation-error-regexp-alist
'("^\"?\\([^\"]*\\)\"?,\\([0-9]*\\) .*\\[.*\\]: " 1 2))
I debug that this line cause error:
File mode specification error: (error "Stack overflow in regexp matcher")
I change it to:
(add-to-list 'compilation-error-regexp-alist
'("^\"?\\([^\"]\{1,\}\\)\"?,\\([0-9]\{1,\}\\) .*\\[.*\\]: " 1 2))
by replacing '*' with '\{1,\}' and error goes away!
Also error occur when '*' replace with '+'.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Why regex with * get 'File mode specification error: (error "Stack overflow in regexp matcher")',
Oleksandr Gavenko <=