diff options
| author | Stefan Monnier | 2023-09-29 14:55:24 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-09-29 14:55:24 -0400 |
| commit | cc0d7d7a3867e4554f89262e4641c9845ee0d647 (patch) | |
| tree | a3c3ee2a6ce207bb969b21f50f802bf55954d1d1 /java/org | |
| parent | 01229fe0096e936ea8f4fad0d64967671c4b1892 (diff) | |
| download | emacs-cc0d7d7a3867e4554f89262e4641c9845ee0d647.tar.gz emacs-cc0d7d7a3867e4554f89262e4641c9845ee0d647.zip | |
search.c (re--describe-compiled): New function (bug#66261)
This provides a fairly primitive but handy way to see what
a regexp compiles to without having to enable REGEX_EMACS_DEBUG
and wade through tons of stderr output.
* doc/lispref/searching.texi (Regexp Problems): Mention
`re--describe-compiled`.
* src/regex-emacs.c (debug_putchar, print_fastmap)
(print_partial_compiled_pattern, print_compiled_pattern): Add `dest`
argument, and compile also when `ENABLE_CHECKING` is set.
(DEBUG_PRINT_COMPILED_PATTERN, print_double_string, regex_compile):
Adjust to additional argument.
* src/regex-emacs.h (print_compiled_pattern): Declare.
* src/search.c (Fre__describe_compiled): New function.
(syms_of_search): Defsubr it.
Diffstat (limited to 'java/org')
0 files changed, 0 insertions, 0 deletions