When GNU Emacs switched to using gnulib for regular expression functionality in the etags program, some features stopped working (please see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76945 for details). That is because RE_SYNTAX_EMACS flag combo in gnulib doesn't have the corresponding flags set. This value should be updated to fix etags and to better reflect the set of features GNU Emacs is using at the moment
From 76f937ae2eacb3649117e7f4c05819e82a7c42a9 Mon Sep 17 00:00:00 2001 From: vg <v...@glums.kodeks.ru> Date: Fri, 11 Apr 2025 16:28:29 +0300 Subject: [PATCH] Update RE_SYNTAX_EMACS to include features used by GNU Emacs
* lib/regex.h: macro update * doc/regex.texi: documentation update --- doc/regex.texi | 3 ++- lib/regex.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/regex.texi b/doc/regex.texi index cba1e13520..9917a418be 100644 --- a/doc/regex.texi +++ b/doc/regex.texi @@ -316,7 +316,8 @@ regular expressions. The predefined syntaxes---taken directly from @file{regex.h}---are: @smallexample -#define RE_SYNTAX_EMACS 0 +# define RE_SYNTAX_EMACS \ + (RE_CHAR_CLASSES | RE_INTERVALS) #define RE_SYNTAX_AWK \ (RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL \ diff --git a/lib/regex.h b/lib/regex.h index 67a3aa70a5..9c34ba2bba 100644 --- a/lib/regex.h +++ b/lib/regex.h @@ -215,7 +215,8 @@ extern reg_syntax_t re_syntax_options; (The [[[ comments delimit what gets put into the Texinfo file, so don't delete them!) */ /* [[[begin syntaxes]]] */ -# define RE_SYNTAX_EMACS 0 +# define RE_SYNTAX_EMACS \ + (RE_CHAR_CLASSES | RE_INTERVALS) # define RE_SYNTAX_AWK \ (RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL \ -- 2.31.1