# HG changeset patch # User stephent # Date 1174740086 0 # Node ID fe5bc63ff0e3c4d09a452fd0969e8e4922b9388c # Parent a827a51c32411124eb4540471b87b401bc560783 [xemacs-hg @ 2007-03-24 12:41:26 by stephent] Suppress warning, add more version info to etags. <87d52yx0xr.fsf@uwakimon.sk.tsukuba.ac.jp> diff -r a827a51c3241 -r fe5bc63ff0e3 lib-src/ChangeLog --- a/lib-src/ChangeLog Sat Mar 24 11:46:43 2007 +0000 +++ b/lib-src/ChangeLog Sat Mar 24 12:41:26 2007 +0000 @@ -1,3 +1,10 @@ +2007-03-24 Stephen J. Turnbull + + * etags.c (print_version): More precise version info. Suggested + by Steve Youngs. + (print_help): Use #ifdef; PRINT_UNDOCUMENTED_OPTIONS_HELP may be + undefined. + 2007-03-24 Stephen J. Turnbull * etags.c: Sync to pot_etags_version 17.26. diff -r a827a51c3241 -r fe5bc63ff0e3 lib-src/etags.c --- a/lib-src/etags.c Sat Mar 24 11:46:43 2007 +0000 +++ b/lib-src/etags.c Sat Mar 24 12:41:26 2007 +0000 @@ -834,13 +834,23 @@ #ifndef EMACS_NAME # define EMACS_NAME "standalone" #endif -#ifndef VERSION -# define VERSION "version" +#ifdef EMACS_VERSION +# ifdef XEMACS_EXTRA_NAME +# define E_VERSION EMACS_VERSION " " XEMACS_EXTRA_NAME +# else +# define E_VERSION EMACS_VERSION +# endif +#elif defined(VERSION) +# define E_VERSION VERSION +#else +# define E_VERSION "version" #endif + static void print_version () { - printf ("%s (%s %s)\n", (CTAGS) ? "ctags" : "etags", EMACS_NAME, VERSION); + printf ("%s (%s %s)\n", (CTAGS) ? "ctags" : "etags", EMACS_NAME, E_VERSION); + puts (pot_etags_version); puts ("Copyright (C) 2006 Free Software Foundation, Inc. and Ken Arnold"); puts ("This program is distributed under the same terms as Emacs"); @@ -978,7 +988,7 @@ Print on the standard output an index of items intended for\n\ human consumption, similar to the output of vgrind. The index\n\ is sorted, and gives the page number of each item."); -# if PRINT_UNDOCUMENTED_OPTIONS_HELP +# ifdef PRINT_UNDOCUMENTED_OPTIONS_HELP puts ("-w, --no-duplicates\n\ Do not create duplicate tag entries, for compatibility with\n\ traditional ctags.");