On 11/07/2013 10:02, Shigio YAMAGUCHI wrote:
> It seems that POSIX grep has '--extended-regexp' option.
> Is there any problem if I use the same option instead of '--ext-regexp'?
Not at all, I just wanted to save some typing. :) (If I had have thought
to check grep, I would have used it in the first place.)
> [GTAGSTHROUGH]
> I would like to announce 'GTAGSTHROUGH is deprecated' and remove it about
> one year after so that users might not be surprised.
I have mixed feelings about deprecated features: on the one hand, it's
nice to have a bit of leeway; on the other, it's going to be removed
anyway, so get it over with. Anyway, I've put it back, but shifted it
to the top, so it can be overridden.
--
Jason.
--- global~.c 2013-07-11 00:11:43 +1000
+++ global.c 2013-07-11 11:43:38 +1000
@@ -155,7 +155,7 @@
{"colour", optional_argument, NULL, 'C'},
{"definition", no_argument, NULL, 'd'},
{"regexp", required_argument, NULL, 'e'},
- {"ext-regexp", no_argument, NULL, 'E'},
+ {"extended-regexp", no_argument, NULL, 'E'},
{"file", no_argument, NULL, 'f'},
{"local", no_argument, NULL, 'l'},
{"file-list", required_argument, NULL, 'L'},
@@ -397,6 +397,8 @@
int optchar;
int option_index = 0;
+ if (getenv("GTAGSTHROUGH"))
+ Tflag++;
prepend_args(getenv("GLOBAL_OPTIONS"), &argc, &argv);
logging_arguments(argc, argv);
while ((optchar = getopt_long(argc, argv,
"acCde:EifgGIlL:mnoOpPqrsStTuvVx", long_options, &option_index)) != EOF) {
@@ -614,8 +616,9 @@
if (Vflag)
Cflag = 0;
#if defined(_WIN32) && !defined(__CYGWIN__)
- else if (!(getenv("ANSICON") || LoadLibrary("ANSI32.dll")))
- Cflag = 0;
+ else if (!(getenv("ANSICON") || LoadLibrary("ANSI32.dll"))
+ && Cflag == 2)
+ Cflag = 0;
#endif
if (Cflag == 2 && !isatty(1))
Cflag = 0;
--- manual~.in 2013-07-11 00:37:58 +1000
+++ manual.in 2013-07-11 11:48:32 +1000
@@ -106,7 +106,7 @@
editors and IDEs.
@item{@option{-e}, @option{--regexp} @arg{pattern}}
Use @arg{pattern} as the pattern; useful to protect patterns
beginning with @file{-}.
- @item{@option{-E}, @option{--ext-regexp}}
+ @item{@option{-E}, @option{--extended-regexp}}
Interpret @arg{pattern} as an extended regular expression.
This is provided to override @option{-G} in
@var{GLOBAL_OPTIONS}.
@item{@option{--encode-path} @arg{chars}}
@@ -252,6 +252,9 @@
@item{@var{MAKEOBJDIRPREFIX}}
If this variable is set, @file{$MAKEOBJDIRPREFIX} is used as
the prefix
of BSD-style objdir. The default is @file{/usr/obj}.
+ @item{@var{GTAGSTHROUGH}}
+ If this variable is set, the @option{-T} option is specified.
+ (Deprecated, please use @var{GLOBAL_OPTIONS} instead.)
@item{@var{GTAGSBLANKENCODE}}
If this variable is set, the @option{--encode-path=" <TAB>"}
option is specified.
@item{@var{GLOBAL_OPTIONS}}
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global