emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (error "Stack overflow in regexp matcher") and (?)wrong display of r


From: Stefan Monnier
Subject: Re: (error "Stack overflow in regexp matcher") and (?)wrong display of regexp in backtrace
Date: Sun, 15 Mar 2020 12:35:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> First of all, note the regexp, "\\(\\\\\\(.\\|\n\\)\\|[^\\\n\15]\\)*"
>                                                             ^^^
> In the source, the "\15" is "\r".  Why is this substitution being made
> for the backtrace?

The string doesn't keep track of whether it was written in the source
code as "\r" or "\^M" or with the actual ^M character or with "\015"
etc... so it's no wonder the printout is not exactly the same as what
you had in the source.  I do wonder why it says \15 instead of \015, \r,
or something else: I've almost never seen 2-digit-long octal for chars,
(only single-digit for NUL and 3-digit for other things), so it's
admittedly a poor choice.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]