diff options
| author | Miles Bader | 2007-02-13 12:14:16 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-02-13 12:14:16 +0000 |
| commit | 18c36727661b0db59afb9311cd363902712b5f21 (patch) | |
| tree | 8af3ead70599b166c87c8d55d372590b7b50dea5 /lib-src | |
| parent | 2658843ecafae493a461232249a53f86f85a10d8 (diff) | |
| parent | 409d26134b3de40bac01dffab971ed18014ae355 (diff) | |
| download | emacs-18c36727661b0db59afb9311cd363902712b5f21.tar.gz emacs-18c36727661b0db59afb9311cd363902712b5f21.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 624-636)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 200-201)
- Merge from emacs--devo--0
- Update from CVS: lisp/nnweb.el (nnweb-google-parse-1): Update parser.
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-171
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 36 | ||||
| -rw-r--r-- | lib-src/etags.c | 48 |
2 files changed, 57 insertions, 27 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 0a1cdf1bb85..77673fb41ad 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,6 +1,19 @@ | |||
| 1 | 2007-02-05 Francesco Potort,Al(B <pot@gnu.org> | ||
| 2 | |||
| 3 | * etags.c (default_C_help, Cplusplus_help, PHP_help, print_help) | ||
| 4 | (main): Now --members is the default for etags, not for ctags yet. | ||
| 5 | |||
| 6 | 2007-02-04 Per Cederqvist <ceder@ingate.com> (tiny change) | ||
| 7 | |||
| 8 | * etags.c (gperf, in_word_set): Change attribute for Java to | ||
| 9 | (C_JAVA & ~C_PLPL). The previous change introduced 2004-09-13 was | ||
| 10 | broken, as (C_JAVA & !C_PLPL) always evaluates to 0. This caused | ||
| 11 | import, package, extends, implements and interface to be treated | ||
| 12 | specially for all kinds of C-style files, not just Java files. | ||
| 13 | |||
| 1 | 2007-01-02 Francesco Potort,Al(B <pot@gnu.org> | 14 | 2007-01-02 Francesco Potort,Al(B <pot@gnu.org> |
| 2 | 15 | ||
| 3 | * etags.c: (longopts): New undocumented option --no-duplicates. | 16 | * etags.c (longopts): New undocumented option --no-duplicates. |
| 4 | (no_duplicates): Static variables for the above option. | 17 | (no_duplicates): Static variables for the above option. |
| 5 | (print_help): Do not print help for --no-warn, now undocumented. | 18 | (print_help): Do not print help for --no-warn, now undocumented. |
| 6 | (add_node): Allow duplicate tags in ctags mode unless --no-duplicates. | 19 | (add_node): Allow duplicate tags in ctags mode unless --no-duplicates. |
| @@ -20,7 +33,7 @@ | |||
| 20 | 33 | ||
| 21 | * makefile.w32-in (make-docfile, ctags, etags, ebrowse, hexl) | 34 | * makefile.w32-in (make-docfile, ctags, etags, ebrowse, hexl) |
| 22 | (movemail, fakemail, sorted-doc, digest-doc, emacsclient) | 35 | (movemail, fakemail, sorted-doc, digest-doc, emacsclient) |
| 23 | (test-distrib, $(DOC), all): depend on stamp_BLD instead of $(BLD). | 36 | (test-distrib, $(DOC), all): Depend on stamp_BLD instead of $(BLD). |
| 24 | ($(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O) $(BLD)/fakemail.$(O)) | 37 | ($(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O) $(BLD)/fakemail.$(O)) |
| 25 | ($(BLD)/sorted-doc.$(O) $(BLD)/digest-doc.$(O)) | 38 | ($(BLD)/sorted-doc.$(O) $(BLD)/digest-doc.$(O)) |
| 26 | ($(BLD)/test-distrib.$(O) $(GETOPTOBJS) $(MOVEMAILOBJS)) | 39 | ($(BLD)/test-distrib.$(O) $(GETOPTOBJS) $(MOVEMAILOBJS)) |
| @@ -6199,7 +6212,22 @@ | |||
| 6199 | Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, | 6212 | Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, |
| 6200 | 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, | 6213 | 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, |
| 6201 | 2006, 2007 Free Software Foundation, Inc. | 6214 | 2006, 2007 Free Software Foundation, Inc. |
| 6202 | Copying and distribution of this file, with or without modification, | 6215 | |
| 6203 | are permitted provided the copyright notice and this notice are preserved. | 6216 | This file is part of GNU Emacs. |
| 6217 | |||
| 6218 | GNU Emacs is free software; you can redistribute it and/or modify | ||
| 6219 | it under the terms of the GNU General Public License as published by | ||
| 6220 | the Free Software Foundation; either version 2, or (at your option) | ||
| 6221 | any later version. | ||
| 6222 | |||
| 6223 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 6224 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 6225 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 6226 | GNU General Public License for more details. | ||
| 6227 | |||
| 6228 | You should have received a copy of the GNU General Public License | ||
| 6229 | along with GNU Emacs; see the file COPYING. If not, write to the | ||
| 6230 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
| 6231 | Boston, MA 02110-1301, USA. | ||
| 6204 | 6232 | ||
| 6205 | ;;; arch-tag: 2d979296-954c-448e-95c1-b46d134513dc | 6233 | ;;; arch-tag: 2d979296-954c-448e-95c1-b46d134513dc |
diff --git a/lib-src/etags.c b/lib-src/etags.c index a3ce46a888a..69b92084fd6 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -453,8 +453,8 @@ static bool constantypedefs; /* -d: create tags for C #define, enum */ | |||
| 453 | /* constants and variables. */ | 453 | /* constants and variables. */ |
| 454 | /* -D: opposite of -d. Default under ctags. */ | 454 | /* -D: opposite of -d. Default under ctags. */ |
| 455 | static bool globals; /* create tags for global variables */ | 455 | static bool globals; /* create tags for global variables */ |
| 456 | static bool declarations; /* --declarations: tag them and extern in C&Co*/ | ||
| 457 | static bool members; /* create tags for C member variables */ | 456 | static bool members; /* create tags for C member variables */ |
| 457 | static bool declarations; /* --declarations: tag them and extern in C&Co*/ | ||
| 458 | static bool no_line_directive; /* ignore #line directives (undocumented) */ | 458 | static bool no_line_directive; /* ignore #line directives (undocumented) */ |
| 459 | static bool no_duplicates; /* no duplicate tags for ctags (undocumented) */ | 459 | static bool no_duplicates; /* no duplicate tags for ctags (undocumented) */ |
| 460 | static bool update; /* -u: update tags */ | 460 | static bool update; /* -u: update tags */ |
| @@ -577,10 +577,11 @@ static char default_C_help [] = | |||
| 577 | definitions of `struct', `union' and `enum'. `#define' macro\n\ | 577 | definitions of `struct', `union' and `enum'. `#define' macro\n\ |
| 578 | definitions and `enum' constants are tags unless you specify\n\ | 578 | definitions and `enum' constants are tags unless you specify\n\ |
| 579 | `--no-defines'. Global variables are tags unless you specify\n\ | 579 | `--no-defines'. Global variables are tags unless you specify\n\ |
| 580 | `--no-globals'. Use of `--no-globals' and `--no-defines'\n\ | 580 | `--no-globals' and so are struct members unless you specify\n\ |
| 581 | can make the tags table file much smaller.\n\ | 581 | `--no-members'. Use of `--no-globals', `--no-defines' and\n\ |
| 582 | `--no-members' can make the tags table file much smaller.\n\ | ||
| 582 | You can tag function declarations and external variables by\n\ | 583 | You can tag function declarations and external variables by\n\ |
| 583 | using `--declarations', and struct members by using `--members'."; | 584 | using `--declarations'."; |
| 584 | 585 | ||
| 585 | static char *Cplusplus_suffixes [] = | 586 | static char *Cplusplus_suffixes [] = |
| 586 | { "C", "c++", "cc", "cpp", "cxx", "H", "h++", "hh", "hpp", "hxx", | 587 | { "C", "c++", "cc", "cpp", "cxx", "H", "h++", "hh", "hpp", "hxx", |
| @@ -590,8 +591,8 @@ static char *Cplusplus_suffixes [] = | |||
| 590 | static char Cplusplus_help [] = | 591 | static char Cplusplus_help [] = |
| 591 | "In C++ code, all the tag constructs of C code are tagged. (Use\n\ | 592 | "In C++ code, all the tag constructs of C code are tagged. (Use\n\ |
| 592 | --help --lang=c --lang=c++ for full help.)\n\ | 593 | --help --lang=c --lang=c++ for full help.)\n\ |
| 593 | In addition to C tags, member functions are also recognized, and\n\ | 594 | In addition to C tags, member functions are also recognized. Member\n\ |
| 594 | optionally member variables if you use the `--members' option.\n\ | 595 | variables are recognized unless you use the `--no-members' option.\n\ |
| 595 | Tags for variables and functions in classes are named `CLASS::VARIABLE'\n\ | 596 | Tags for variables and functions in classes are named `CLASS::VARIABLE'\n\ |
| 596 | and `CLASS::FUNCTION'. `operator' definitions have tag names like\n\ | 597 | and `CLASS::FUNCTION'. `operator' definitions have tag names like\n\ |
| 597 | `operator+'."; | 598 | `operator+'."; |
| @@ -686,8 +687,8 @@ defined in the default package is `main::SUB'."; | |||
| 686 | static char *PHP_suffixes [] = | 687 | static char *PHP_suffixes [] = |
| 687 | { "php", "php3", "php4", NULL }; | 688 | { "php", "php3", "php4", NULL }; |
| 688 | static char PHP_help [] = | 689 | static char PHP_help [] = |
| 689 | "In PHP code, tags are functions, classes and defines. When using\n\ | 690 | "In PHP code, tags are functions, classes and defines. Unless you use\n\ |
| 690 | the `--members' option, vars are tags too."; | 691 | the `--no-members' option, vars are tags too."; |
| 691 | 692 | ||
| 692 | static char *plain_C_suffixes [] = | 693 | static char *plain_C_suffixes [] = |
| 693 | { "pc", /* Pro*C file */ | 694 | { "pc", /* Pro*C file */ |
| @@ -929,8 +930,9 @@ Relative ones are stored relative to the output file's directory.\n"); | |||
| 929 | puts ("--no-globals\n\ | 930 | puts ("--no-globals\n\ |
| 930 | Do not create tag entries for global variables in some\n\ | 931 | Do not create tag entries for global variables in some\n\ |
| 931 | languages. This makes the tags file smaller."); | 932 | languages. This makes the tags file smaller."); |
| 932 | puts ("--members\n\ | 933 | puts ("--no-members\n\ |
| 933 | Create tag entries for members of structures in some languages."); | 934 | Do not create tag entries for members of structures\n\ |
| 935 | in some languages."); | ||
| 934 | 936 | ||
| 935 | puts ("-r REGEXP, --regex=REGEXP or --regex=@regexfile\n\ | 937 | puts ("-r REGEXP, --regex=REGEXP or --regex=@regexfile\n\ |
| 936 | Make a tag for each line matching a regular expression pattern\n\ | 938 | Make a tag for each line matching a regular expression pattern\n\ |
| @@ -1168,8 +1170,8 @@ main (argc, argv) | |||
| 1168 | 1170 | ||
| 1169 | /* | 1171 | /* |
| 1170 | * If etags, always find typedefs and structure tags. Why not? | 1172 | * If etags, always find typedefs and structure tags. Why not? |
| 1171 | * Also default to find macro constants, enum constants and | 1173 | * Also default to find macro constants, enum constants, struct |
| 1172 | * global variables. | 1174 | * members and global variables. |
| 1173 | */ | 1175 | */ |
| 1174 | if (!CTAGS) | 1176 | if (!CTAGS) |
| 1175 | { | 1177 | { |
| @@ -2418,12 +2420,12 @@ __attribute__, 0, st_C_attribute | |||
| 2418 | @protocol, 0, st_C_objprot | 2420 | @protocol, 0, st_C_objprot |
| 2419 | @implementation,0, st_C_objimpl | 2421 | @implementation,0, st_C_objimpl |
| 2420 | @end, 0, st_C_objend | 2422 | @end, 0, st_C_objend |
| 2421 | import, (C_JAVA & !C_PLPL), st_C_ignore | 2423 | import, (C_JAVA & ~C_PLPL), st_C_ignore |
| 2422 | package, (C_JAVA & !C_PLPL), st_C_ignore | 2424 | package, (C_JAVA & ~C_PLPL), st_C_ignore |
| 2423 | friend, C_PLPL, st_C_ignore | 2425 | friend, C_PLPL, st_C_ignore |
| 2424 | extends, (C_JAVA & !C_PLPL), st_C_javastruct | 2426 | extends, (C_JAVA & ~C_PLPL), st_C_javastruct |
| 2425 | implements, (C_JAVA & !C_PLPL), st_C_javastruct | 2427 | implements, (C_JAVA & ~C_PLPL), st_C_javastruct |
| 2426 | interface, (C_JAVA & !C_PLPL), st_C_struct | 2428 | interface, (C_JAVA & ~C_PLPL), st_C_struct |
| 2427 | class, 0, st_C_class | 2429 | class, 0, st_C_class |
| 2428 | namespace, C_PLPL, st_C_struct | 2430 | namespace, C_PLPL, st_C_struct |
| 2429 | domain, C_STAR, st_C_struct | 2431 | domain, C_STAR, st_C_struct |
| @@ -2534,19 +2536,19 @@ in_word_set (str, len) | |||
| 2534 | {"@end", 0, st_C_objend}, | 2536 | {"@end", 0, st_C_objend}, |
| 2535 | {"union", 0, st_C_struct}, | 2537 | {"union", 0, st_C_struct}, |
| 2536 | {"define", 0, st_C_define}, | 2538 | {"define", 0, st_C_define}, |
| 2537 | {"import", (C_JAVA & !C_PLPL), st_C_ignore}, | 2539 | {"import", (C_JAVA & ~C_PLPL), st_C_ignore}, |
| 2538 | {"template", 0, st_C_template}, | 2540 | {"template", 0, st_C_template}, |
| 2539 | {"operator", C_PLPL, st_C_operator}, | 2541 | {"operator", C_PLPL, st_C_operator}, |
| 2540 | {"@interface", 0, st_C_objprot}, | 2542 | {"@interface", 0, st_C_objprot}, |
| 2541 | {"implements", (C_JAVA & !C_PLPL), st_C_javastruct}, | 2543 | {"implements", (C_JAVA & ~C_PLPL), st_C_javastruct}, |
| 2542 | {"friend", C_PLPL, st_C_ignore}, | 2544 | {"friend", C_PLPL, st_C_ignore}, |
| 2543 | {"typedef", 0, st_C_typedef}, | 2545 | {"typedef", 0, st_C_typedef}, |
| 2544 | {"return", 0, st_C_ignore}, | 2546 | {"return", 0, st_C_ignore}, |
| 2545 | {"@implementation",0, st_C_objimpl}, | 2547 | {"@implementation",0, st_C_objimpl}, |
| 2546 | {"@protocol", 0, st_C_objprot}, | 2548 | {"@protocol", 0, st_C_objprot}, |
| 2547 | {"interface", (C_JAVA & !C_PLPL), st_C_struct}, | 2549 | {"interface", (C_JAVA & ~C_PLPL), st_C_struct}, |
| 2548 | {"extern", 0, st_C_extern}, | 2550 | {"extern", 0, st_C_extern}, |
| 2549 | {"extends", (C_JAVA & !C_PLPL), st_C_javastruct}, | 2551 | {"extends", (C_JAVA & ~C_PLPL), st_C_javastruct}, |
| 2550 | {"struct", 0, st_C_struct}, | 2552 | {"struct", 0, st_C_struct}, |
| 2551 | {"domain", C_STAR, st_C_struct}, | 2553 | {"domain", C_STAR, st_C_struct}, |
| 2552 | {"switch", 0, st_C_ignore}, | 2554 | {"switch", 0, st_C_ignore}, |
| @@ -2556,7 +2558,7 @@ in_word_set (str, len) | |||
| 2556 | {"class", 0, st_C_class}, | 2558 | {"class", 0, st_C_class}, |
| 2557 | {"while", 0, st_C_ignore}, | 2559 | {"while", 0, st_C_ignore}, |
| 2558 | {"undef", 0, st_C_define}, | 2560 | {"undef", 0, st_C_define}, |
| 2559 | {"package", (C_JAVA & !C_PLPL), st_C_ignore}, | 2561 | {"package", (C_JAVA & ~C_PLPL), st_C_ignore}, |
| 2560 | {"__attribute__", 0, st_C_attribute}, | 2562 | {"__attribute__", 0, st_C_attribute}, |
| 2561 | {"SYSCALL", 0, st_C_gnumacro}, | 2563 | {"SYSCALL", 0, st_C_gnumacro}, |
| 2562 | {"ENTRY", 0, st_C_gnumacro}, | 2564 | {"ENTRY", 0, st_C_gnumacro}, |
| @@ -6894,7 +6896,7 @@ xrealloc (ptr, size) | |||
| 6894 | * tab-width: 8 | 6896 | * tab-width: 8 |
| 6895 | * fill-column: 79 | 6897 | * fill-column: 79 |
| 6896 | * c-font-lock-extra-types: ("FILE" "bool" "language" "linebuffer" "fdesc" "node" "regexp") | 6898 | * c-font-lock-extra-types: ("FILE" "bool" "language" "linebuffer" "fdesc" "node" "regexp") |
| 6897 | * c-file-style: gnu | 6899 | * c-file-style: "gnu" |
| 6898 | * End: | 6900 | * End: |
| 6899 | */ | 6901 | */ |
| 6900 | 6902 | ||