aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorDave Love2000-04-19 21:51:46 +0000
committerDave Love2000-04-19 21:51:46 +0000
commit97052c635fcca9ffd5e8e3d8f2a17a72651a3fc3 (patch)
tree5f7fdebb22e616f15dea5dcb52e62e074b62f16a /lib-src
parent419d1c749d2b78cc18a50365cf976f4f276051f4 (diff)
downloademacs-97052c635fcca9ffd5e8e3d8f2a17a72651a3fc3.tar.gz
emacs-97052c635fcca9ffd5e8e3d8f2a17a72651a3fc3.zip
(Texinfo_functions): New function.
(lang_names): Install it. (Texinfo_suffixes): New variable.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog6
-rw-r--r--lib-src/etags.c29
2 files changed, 34 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index d481301d2f5..4b90e42f366 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,9 @@
12000-03-19 Dave Love <fx@gnu.org>
2
3 * etags.c (Texinfo_functions): New function.
4 (lang_names): Install it.
5 (Texinfo_suffixes): New variable.
6
12000-04-19 Gerd Moellmann <gerd@gnu.org> 72000-04-19 Gerd Moellmann <gerd@gnu.org>
2 8
3 * ebrowse.c (xmalloc, xrealloc): Rewritten. 9 * ebrowse.c (xmalloc, xrealloc): Rewritten.
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 1f80f78d628..8f7949c5595 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1,5 +1,5 @@
1/* Tags file maker to go with GNU Emacs 1/* Tags file maker to go with GNU Emacs
2 Copyright (C) 1984, 87, 88, 89, 93, 94, 95, 98, 99 2 Copyright (C) 1984, 87, 88, 89, 93, 94, 95, 98, 99, 2000
3 Free Software Foundation, Inc. and Ken Arnold 3 Free Software Foundation, Inc. and Ken Arnold
4 4
5This file is not considered part of GNU Emacs. 5This file is not considered part of GNU Emacs.
@@ -255,6 +255,7 @@ static void Prolog_functions P_((FILE *));
255static void Python_functions P_((FILE *)); 255static void Python_functions P_((FILE *));
256static void Scheme_functions P_((FILE *)); 256static void Scheme_functions P_((FILE *));
257static void TeX_functions P_((FILE *)); 257static void TeX_functions P_((FILE *));
258static void Texinfo_functions P_ ((FILE *));
258static void just_read_file P_((FILE *)); 259static void just_read_file P_((FILE *));
259 260
260static void print_language_names P_((void)); 261static void print_language_names P_((void));
@@ -522,6 +523,9 @@ char *Scheme_suffixes [] =
522char *TeX_suffixes [] = 523char *TeX_suffixes [] =
523 { "TeX", "bib", "clo", "cls", "ltx", "sty", "tex", NULL }; 524 { "TeX", "bib", "clo", "cls", "ltx", "sty", "tex", NULL };
524 525
526char *Texinfo_suffixes [] =
527 { "texi", "txi", "texinfo", NULL };
528
525char *Yacc_suffixes [] = 529char *Yacc_suffixes [] =
526 { "y", "ym", "yy", "yxx", "y++", NULL }; /* .ym is Objective yacc file */ 530 { "y", "ym", "yy", "yxx", "y++", NULL }; /* .ym is Objective yacc file */
527 531
@@ -552,6 +556,7 @@ language lang_names [] =
552 { "python", Python_functions, Python_suffixes, NULL }, 556 { "python", Python_functions, Python_suffixes, NULL },
553 { "scheme", Scheme_functions, Scheme_suffixes, NULL }, 557 { "scheme", Scheme_functions, Scheme_suffixes, NULL },
554 { "tex", TeX_functions, TeX_suffixes, NULL }, 558 { "tex", TeX_functions, TeX_suffixes, NULL },
559 { "texinfo", Texinfo_functions, Texinfo_suffixes, NULL },
555 { "yacc", Yacc_entries, Yacc_suffixes, NULL }, 560 { "yacc", Yacc_entries, Yacc_suffixes, NULL },
556 { "auto", NULL }, /* default guessing scheme */ 561 { "auto", NULL }, /* default guessing scheme */
557 { "none", just_read_file }, /* regexp matching only */ 562 { "none", just_read_file }, /* regexp matching only */
@@ -4378,6 +4383,28 @@ TEX_Token (cp)
4378 return -1; 4383 return -1;
4379} 4384}
4380 4385
4386/* Texinfo support. Dave Love, Mar. 2000. */
4387static void
4388Texinfo_functions (inf)
4389 FILE * inf;
4390{
4391 char *cp, *start;
4392 LOOP_ON_INPUT_LINES (inf, lb, cp)
4393 {
4394 if ((*cp++ == '@' && *cp++ == 'n' && *cp++ == 'o' && *cp++ == 'd'
4395 && *cp++ == 'e' && iswhite (*cp++)))
4396 {
4397 while (iswhite (*cp))
4398 cp++;
4399 start = cp;
4400 while (*cp != '\0' && *cp != ',')
4401 cp++;
4402 pfnote (savenstr (start, cp - start), TRUE,
4403 lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
4404 }
4405 }
4406}
4407
4381/* 4408/*
4382 * Prolog support (rewritten) by Anders Lindgren, Mar. 96 4409 * Prolog support (rewritten) by Anders Lindgren, Mar. 96
4383 * 4410 *