emacs/doc
Stefan Monnier cc0d7d7a38 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.
2023-09-29 14:55:24 -04:00
..
emacs There are no file modes on windows and dos 2023-09-27 22:33:47 -04:00
lispintro ; * doc/lispintro/emacs-lisp-intro.texi (car & cdr): Fix typo. 2023-06-25 08:27:01 +03:00
lispref search.c (re--describe-compiled): New function (bug#66261) 2023-09-29 14:55:24 -04:00
man ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
misc ; Mention 64-bit first in FAQ on large files 2023-09-28 21:44:10 +02:00