diff options
| author | Alexander Gramiak | 2017-07-08 11:25:53 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-07-08 11:25:53 +0300 |
| commit | 42cdb68649c24eab07baa39b0c553c87e7ac9989 (patch) | |
| tree | 8dd97bc0a5c6733287a86427b8239884d7192971 | |
| parent | 92307cb05d8b0d05dab7981f30c13962f8050eb0 (diff) | |
| download | emacs-42cdb68649c24eab07baa39b0c553c87e7ac9989.tar.gz emacs-42cdb68649c24eab07baa39b0c553c87e7ac9989.zip | |
Support '=' in Scheme and Lisp tags in 'etags'
* lib-src/etags.c (get_lispy_tag): New function.
(L_getit, Scheme_functions): Use get_lispy_tag (Bug#5624).
* test/manual/etags/CTAGS.good:
* test/manual/etags/ETAGS.good_1:
* test/manual/etags/ETAGS.good_2:
* test/manual/etags/ETAGS.good_3:
* test/manual/etags/ETAGS.good_4:
* test/manual/etags/ETAGS.good_5:
* test/manual/etags/ETAGS.good_6:
* test/manual/etags/Makefile:
* test/manual/etags/el-src/TAGTEST.EL: Update tests.
* test/manual/etags/scm-src/test.scm: New tests for Scheme.
| -rw-r--r-- | lib-src/etags.c | 29 | ||||
| -rw-r--r-- | test/manual/etags/CTAGS.good | 8 | ||||
| -rw-r--r-- | test/manual/etags/ETAGS.good_1 | 26 | ||||
| -rw-r--r-- | test/manual/etags/ETAGS.good_2 | 26 | ||||
| -rw-r--r-- | test/manual/etags/ETAGS.good_3 | 26 | ||||
| -rw-r--r-- | test/manual/etags/ETAGS.good_4 | 26 | ||||
| -rw-r--r-- | test/manual/etags/ETAGS.good_5 | 26 | ||||
| -rw-r--r-- | test/manual/etags/ETAGS.good_6 | 26 | ||||
| -rw-r--r-- | test/manual/etags/Makefile | 3 | ||||
| -rw-r--r-- | test/manual/etags/el-src/TAGTEST.EL | 1 | ||||
| -rw-r--r-- | test/manual/etags/scm-src/test.scm | 20 |
11 files changed, 162 insertions, 55 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index e5ff7bd10fc..7b1a7fc1851 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -373,6 +373,7 @@ static void readline (linebuffer *, FILE *); | |||
| 373 | static long readline_internal (linebuffer *, FILE *, char const *); | 373 | static long readline_internal (linebuffer *, FILE *, char const *); |
| 374 | static bool nocase_tail (const char *); | 374 | static bool nocase_tail (const char *); |
| 375 | static void get_tag (char *, char **); | 375 | static void get_tag (char *, char **); |
| 376 | static void get_lispy_tag (char *); | ||
| 376 | 377 | ||
| 377 | static void analyze_regex (char *); | 378 | static void analyze_regex (char *); |
| 378 | static void free_regexps (void); | 379 | static void free_regexps (void); |
| @@ -5347,7 +5348,7 @@ L_getit (void) | |||
| 5347 | /* Ok, then skip "(" before name in (defstruct (foo)) */ | 5348 | /* Ok, then skip "(" before name in (defstruct (foo)) */ |
| 5348 | dbp = skip_spaces (dbp); | 5349 | dbp = skip_spaces (dbp); |
| 5349 | } | 5350 | } |
| 5350 | get_tag (dbp, NULL); | 5351 | get_lispy_tag (dbp); |
| 5351 | } | 5352 | } |
| 5352 | 5353 | ||
| 5353 | static void | 5354 | static void |
| @@ -5549,14 +5550,14 @@ Scheme_functions (FILE *inf) | |||
| 5549 | if (strneq (bp, "(def", 4) || strneq (bp, "(DEF", 4)) | 5550 | if (strneq (bp, "(def", 4) || strneq (bp, "(DEF", 4)) |
| 5550 | { | 5551 | { |
| 5551 | bp = skip_non_spaces (bp+4); | 5552 | bp = skip_non_spaces (bp+4); |
| 5552 | /* Skip over open parens and white space. Don't continue past | 5553 | /* Skip over open parens and white space. |
| 5553 | '\0'. */ | 5554 | Don't continue past '\0' or '='. */ |
| 5554 | while (*bp && notinname (*bp)) | 5555 | while (*bp && notinname (*bp) && *bp != '=') |
| 5555 | bp++; | 5556 | bp++; |
| 5556 | get_tag (bp, NULL); | 5557 | get_lispy_tag (bp); |
| 5557 | } | 5558 | } |
| 5558 | if (LOOKING_AT (bp, "(SET!") || LOOKING_AT (bp, "(set!")) | 5559 | if (LOOKING_AT (bp, "(SET!") || LOOKING_AT (bp, "(set!")) |
| 5559 | get_tag (bp, NULL); | 5560 | get_lispy_tag (bp); |
| 5560 | } | 5561 | } |
| 5561 | } | 5562 | } |
| 5562 | 5563 | ||
| @@ -6591,6 +6592,22 @@ get_tag (register char *bp, char **namepp) | |||
| 6591 | *namepp = savenstr (bp, cp - bp); | 6592 | *namepp = savenstr (bp, cp - bp); |
| 6592 | } | 6593 | } |
| 6593 | 6594 | ||
| 6595 | /* Similar to get_tag, but include '=' as part of the tag. */ | ||
| 6596 | static void | ||
| 6597 | get_lispy_tag (register char *bp) | ||
| 6598 | { | ||
| 6599 | register char *cp = bp; | ||
| 6600 | |||
| 6601 | if (*bp != '\0') | ||
| 6602 | { | ||
| 6603 | /* Go till you get to white space or a syntactic break */ | ||
| 6604 | for (cp = bp + 1; !notinname (*cp) || *cp == '='; cp++) | ||
| 6605 | continue; | ||
| 6606 | make_tag (bp, cp - bp, true, | ||
| 6607 | lb.buffer, cp - lb.buffer + 1, lineno, linecharno); | ||
| 6608 | } | ||
| 6609 | } | ||
| 6610 | |||
| 6594 | /* | 6611 | /* |
| 6595 | * Read a line of text from `stream' into `lbp', excluding the | 6612 | * Read a line of text from `stream' into `lbp', excluding the |
| 6596 | * newline or CR-NL, if any. Return the number of characters read from | 6613 | * newline or CR-NL, if any. Return the number of characters read from |
diff --git a/test/manual/etags/CTAGS.good b/test/manual/etags/CTAGS.good index 13bb37c2e6a..519315c6fdd 100644 --- a/test/manual/etags/CTAGS.good +++ b/test/manual/etags/CTAGS.good | |||
| @@ -202,6 +202,7 @@ ${CHECKOBJS} make-src/Makefile /^${CHECKOBJS}: CFLAGS=-g3 -DNULLFREECHECK=0$/ | |||
| 202 | =\relax tex-src/texinfo.tex /^\\let\\subsubsection=\\relax$/ | 202 | =\relax tex-src/texinfo.tex /^\\let\\subsubsection=\\relax$/ |
| 203 | =\relax tex-src/texinfo.tex /^\\let\\appendix=\\relax$/ | 203 | =\relax tex-src/texinfo.tex /^\\let\\appendix=\\relax$/ |
| 204 | =\smartitalic tex-src/texinfo.tex /^\\let\\cite=\\smartitalic$/ | 204 | =\smartitalic tex-src/texinfo.tex /^\\let\\cite=\\smartitalic$/ |
| 205 | =starts-with-equals! scm-src/test.scm /^(define =starts-with-equals! #t)$/ | ||
| 205 | > tex-src/texinfo.tex /^\\def>{{\\tt \\gtr}}$/ | 206 | > tex-src/texinfo.tex /^\\def>{{\\tt \\gtr}}$/ |
| 206 | >field1 forth-src/test-forth.fth /^ 9 field >field1$/ | 207 | >field1 forth-src/test-forth.fth /^ 9 field >field1$/ |
| 207 | >field2 forth-src/test-forth.fth /^ 5 field >field2$/ | 208 | >field2 forth-src/test-forth.fth /^ 5 field >field2$/ |
| @@ -2750,6 +2751,7 @@ current-idle-time c-src/emacs/src/keyboard.c /^DEFUN ("current-idle-time", Fcurr | |||
| 2750 | current-input-mode c-src/emacs/src/keyboard.c /^DEFUN ("current-input-mode", Fcurrent_input_mode, / | 2751 | current-input-mode c-src/emacs/src/keyboard.c /^DEFUN ("current-input-mode", Fcurrent_input_mode, / |
| 2751 | current_kboard c-src/emacs/src/keyboard.c 85 | 2752 | current_kboard c-src/emacs/src/keyboard.c 85 |
| 2752 | current_lb_is_new c-src/etags.c 2926 | 2753 | current_lb_is_new c-src/etags.c 2926 |
| 2754 | curry-test scm-src/test.scm /^(define (((((curry-test a) b) c) d) e)$/ | ||
| 2753 | cursor_position cp-src/screen.cpp /^void cursor_position(void)$/ | 2755 | cursor_position cp-src/screen.cpp /^void cursor_position(void)$/ |
| 2754 | cursor_x cp-src/screen.cpp 15 | 2756 | cursor_x cp-src/screen.cpp 15 |
| 2755 | cursor_y cp-src/screen.cpp 15 | 2757 | cursor_y cp-src/screen.cpp 15 |
| @@ -3037,6 +3039,7 @@ foo ruby-src/test1.ru /^ attr_reader :foo$/ | |||
| 3037 | foo! ruby-src/test1.ru /^ def foo!$/ | 3039 | foo! ruby-src/test1.ru /^ def foo!$/ |
| 3038 | foo1 ruby-src/test1.ru /^ attr_reader(:foo1, :bar1, # comment$/ | 3040 | foo1 ruby-src/test1.ru /^ attr_reader(:foo1, :bar1, # comment$/ |
| 3039 | foo2 ruby-src/test1.ru /^ alias_method ( :foo2, #cmmt$/ | 3041 | foo2 ruby-src/test1.ru /^ alias_method ( :foo2, #cmmt$/ |
| 3042 | foo==bar el-src/TAGTEST.EL /^(defun foo==bar () (message "hi")) ; Bug#5624$/ | ||
| 3040 | foobar c-src/c.c /^int foobar() {;}$/ | 3043 | foobar c-src/c.c /^int foobar() {;}$/ |
| 3041 | foobar c.c /^extern void foobar (void) __attribute__ ((section / | 3044 | foobar c.c /^extern void foobar (void) __attribute__ ((section / |
| 3042 | foobar2 c-src/h.h 20 | 3045 | foobar2 c-src/h.h 20 |
| @@ -3161,6 +3164,9 @@ header c-src/emacs/src/lisp.h 1672 | |||
| 3161 | header c-src/emacs/src/lisp.h 1826 | 3164 | header c-src/emacs/src/lisp.h 1826 |
| 3162 | header_size c-src/emacs/src/lisp.h 1471 | 3165 | header_size c-src/emacs/src/lisp.h 1471 |
| 3163 | heapsize c-src/emacs/src/gmalloc.c 361 | 3166 | heapsize c-src/emacs/src/gmalloc.c 361 |
| 3167 | hello scm-src/test.scm /^(define hello "Hello, Emacs!")$/ | ||
| 3168 | hello scm-src/test.scm /^(set! hello "Hello, world!")$/ | ||
| 3169 | hello-world scm-src/test.scm /^(define (hello-world)$/ | ||
| 3164 | help c-src/etags.c 193 | 3170 | help c-src/etags.c 193 |
| 3165 | helpPanel objcpp-src/SimpleCalc.M /^- helpPanel:sender$/ | 3171 | helpPanel objcpp-src/SimpleCalc.M /^- helpPanel:sender$/ |
| 3166 | help_char_p c-src/emacs/src/keyboard.c /^help_char_p (Lisp_Object c)$/ | 3172 | help_char_p c-src/emacs/src/keyboard.c /^help_char_p (Lisp_Object c)$/ |
| @@ -4317,10 +4323,12 @@ test erl-src/gs_dialog.erl /^test() ->$/ | |||
| 4317 | test go-src/test1.go /^func test(p plus) {$/ | 4323 | test go-src/test1.go /^func test(p plus) {$/ |
| 4318 | test make-src/Makefile /^test:$/ | 4324 | test make-src/Makefile /^test:$/ |
| 4319 | test php-src/ptest.php /^test $/ | 4325 | test php-src/ptest.php /^test $/ |
| 4326 | test-begin scm-src/test.scm /^(define-syntax test-begin$/ | ||
| 4320 | test.me22b lua-src/test.lua /^ local function test.me22b (one)$/ | 4327 | test.me22b lua-src/test.lua /^ local function test.me22b (one)$/ |
| 4321 | test.me_22a lua-src/test.lua /^ function test.me_22a(one, two)$/ | 4328 | test.me_22a lua-src/test.lua /^ function test.me_22a(one, two)$/ |
| 4322 | test_undefined c-src/emacs/src/keyboard.c /^test_undefined (Lisp_Object binding)$/ | 4329 | test_undefined c-src/emacs/src/keyboard.c /^test_undefined (Lisp_Object binding)$/ |
| 4323 | texttreelist prol-src/natded.prolog /^texttreelist([]).$/ | 4330 | texttreelist prol-src/natded.prolog /^texttreelist([]).$/ |
| 4331 | there-is-a-=-in-the-middle! scm-src/test.scm /^(define (there-is-a-=-in-the-middle!) #t)$/ | ||
| 4324 | this c-src/a/b/b.c 1 | 4332 | this c-src/a/b/b.c 1 |
| 4325 | this-command-keys c-src/emacs/src/keyboard.c /^DEFUN ("this-command-keys", Fthis_command_keys, St/ | 4333 | this-command-keys c-src/emacs/src/keyboard.c /^DEFUN ("this-command-keys", Fthis_command_keys, St/ |
| 4326 | this-command-keys-vector c-src/emacs/src/keyboard.c /^DEFUN ("this-command-keys-vector", Fthis_command_k/ | 4334 | this-command-keys-vector c-src/emacs/src/keyboard.c /^DEFUN ("this-command-keys-vector", Fthis_command_k/ |
diff --git a/test/manual/etags/ETAGS.good_1 b/test/manual/etags/ETAGS.good_1 index 6c4a02ae1c1..cd9cd4a8450 100644 --- a/test/manual/etags/ETAGS.good_1 +++ b/test/manual/etags/ETAGS.good_1 | |||
| @@ -2143,10 +2143,11 @@ main(37,571 | |||
| 2143 | class D 41,622 | 2143 | class D 41,622 |
| 2144 | D(43,659 | 2144 | D(43,659 |
| 2145 | 2145 | ||
| 2146 | el-src/TAGTEST.EL,148 | 2146 | el-src/TAGTEST.EL,179 |
| 2147 | (foo::defmumble bletch 1,0 | 2147 | (foo::defmumble bletch 1,0 |
| 2148 | (defalias 'pending-delete-mode pending-delete-mode5,102 | 2148 | (defun foo==bar foo==bar2,33 |
| 2149 | (defalias (quote explicitly-quoted-pending-delete-mode)8,175 | 2149 | (defalias 'pending-delete-mode pending-delete-mode6,149 |
| 2150 | (defalias (quote explicitly-quoted-pending-delete-mode)9,222 | ||
| 2150 | 2151 | ||
| 2151 | el-src/emacs/lisp/progmodes/etags.el,5069 | 2152 | el-src/emacs/lisp/progmodes/etags.el,5069 |
| 2152 | (defvar tags-file-name 34,1034 | 2153 | (defvar tags-file-name 34,1034 |
| @@ -3135,6 +3136,15 @@ module A9,57 | |||
| 3135 | alias_method ( :foo2,foo237,586 | 3136 | alias_method ( :foo2,foo237,586 |
| 3136 | A::Constant Constant42,655 | 3137 | A::Constant Constant42,655 |
| 3137 | 3138 | ||
| 3139 | scm-src/test.scm,260 | ||
| 3140 | (define hello 1,0 | ||
| 3141 | (set! hello 3,32 | ||
| 3142 | (define (hello-world)5,62 | ||
| 3143 | (define (there-is-a-=-in-the-middle!)there-is-a-=-in-the-middle!10,128 | ||
| 3144 | (define =starts-with-equals! =starts-with-equals!12,171 | ||
| 3145 | (define (((((curry-test 14,205 | ||
| 3146 | (define-syntax test-begin17,265 | ||
| 3147 | |||
| 3138 | tex-src/testenv.tex,52 | 3148 | tex-src/testenv.tex,52 |
| 3139 | \newcommand{\nm}\nm4,77 | 3149 | \newcommand{\nm}\nm4,77 |
| 3140 | \section{blah}blah8,139 | 3150 | \section{blah}blah8,139 |
| @@ -3145,11 +3155,11 @@ tex-src/gzip.texi,303 | |||
| 3145 | @node Overview,83,2705 | 3155 | @node Overview,83,2705 |
| 3146 | @node Sample,166,7272 | 3156 | @node Sample,166,7272 |
| 3147 | @node Invoking gzip,Invoking gzip210,8828 | 3157 | @node Invoking gzip,Invoking gzip210,8828 |
| 3148 | @node Advanced usage,Advanced usage357,13495 | 3158 | @node Advanced usage,Advanced usage357,13496 |
| 3149 | @node Environment,420,15207 | 3159 | @node Environment,420,15208 |
| 3150 | @node Tapes,437,15768 | 3160 | @node Tapes,437,15769 |
| 3151 | @node Problems,460,16767 | 3161 | @node Problems,460,16768 |
| 3152 | @node Concept Index,Concept Index473,17287 | 3162 | @node Concept Index,Concept Index473,17288 |
| 3153 | 3163 | ||
| 3154 | tex-src/texinfo.tex,30627 | 3164 | tex-src/texinfo.tex,30627 |
| 3155 | \def\texinfoversion{\texinfoversion26,1032 | 3165 | \def\texinfoversion{\texinfoversion26,1032 |
diff --git a/test/manual/etags/ETAGS.good_2 b/test/manual/etags/ETAGS.good_2 index fa784d2e7b5..54fd00e95da 100644 --- a/test/manual/etags/ETAGS.good_2 +++ b/test/manual/etags/ETAGS.good_2 | |||
| @@ -2712,10 +2712,11 @@ main(37,571 | |||
| 2712 | class D 41,622 | 2712 | class D 41,622 |
| 2713 | D(43,659 | 2713 | D(43,659 |
| 2714 | 2714 | ||
| 2715 | el-src/TAGTEST.EL,148 | 2715 | el-src/TAGTEST.EL,179 |
| 2716 | (foo::defmumble bletch 1,0 | 2716 | (foo::defmumble bletch 1,0 |
| 2717 | (defalias 'pending-delete-mode pending-delete-mode5,102 | 2717 | (defun foo==bar foo==bar2,33 |
| 2718 | (defalias (quote explicitly-quoted-pending-delete-mode)8,175 | 2718 | (defalias 'pending-delete-mode pending-delete-mode6,149 |
| 2719 | (defalias (quote explicitly-quoted-pending-delete-mode)9,222 | ||
| 2719 | 2720 | ||
| 2720 | el-src/emacs/lisp/progmodes/etags.el,5188 | 2721 | el-src/emacs/lisp/progmodes/etags.el,5188 |
| 2721 | (defvar tags-file-name 34,1034 | 2722 | (defvar tags-file-name 34,1034 |
| @@ -3708,6 +3709,15 @@ module A9,57 | |||
| 3708 | alias_method ( :foo2,foo237,586 | 3709 | alias_method ( :foo2,foo237,586 |
| 3709 | A::Constant Constant42,655 | 3710 | A::Constant Constant42,655 |
| 3710 | 3711 | ||
| 3712 | scm-src/test.scm,260 | ||
| 3713 | (define hello 1,0 | ||
| 3714 | (set! hello 3,32 | ||
| 3715 | (define (hello-world)5,62 | ||
| 3716 | (define (there-is-a-=-in-the-middle!)there-is-a-=-in-the-middle!10,128 | ||
| 3717 | (define =starts-with-equals! =starts-with-equals!12,171 | ||
| 3718 | (define (((((curry-test 14,205 | ||
| 3719 | (define-syntax test-begin17,265 | ||
| 3720 | |||
| 3711 | tex-src/testenv.tex,52 | 3721 | tex-src/testenv.tex,52 |
| 3712 | \newcommand{\nm}\nm4,77 | 3722 | \newcommand{\nm}\nm4,77 |
| 3713 | \section{blah}blah8,139 | 3723 | \section{blah}blah8,139 |
| @@ -3718,11 +3728,11 @@ tex-src/gzip.texi,303 | |||
| 3718 | @node Overview,83,2705 | 3728 | @node Overview,83,2705 |
| 3719 | @node Sample,166,7272 | 3729 | @node Sample,166,7272 |
| 3720 | @node Invoking gzip,Invoking gzip210,8828 | 3730 | @node Invoking gzip,Invoking gzip210,8828 |
| 3721 | @node Advanced usage,Advanced usage357,13495 | 3731 | @node Advanced usage,Advanced usage357,13496 |
| 3722 | @node Environment,420,15207 | 3732 | @node Environment,420,15208 |
| 3723 | @node Tapes,437,15768 | 3733 | @node Tapes,437,15769 |
| 3724 | @node Problems,460,16767 | 3734 | @node Problems,460,16768 |
| 3725 | @node Concept Index,Concept Index473,17287 | 3735 | @node Concept Index,Concept Index473,17288 |
| 3726 | 3736 | ||
| 3727 | tex-src/texinfo.tex,30627 | 3737 | tex-src/texinfo.tex,30627 |
| 3728 | \def\texinfoversion{\texinfoversion26,1032 | 3738 | \def\texinfoversion{\texinfoversion26,1032 |
diff --git a/test/manual/etags/ETAGS.good_3 b/test/manual/etags/ETAGS.good_3 index 547dee2d43c..508427c501c 100644 --- a/test/manual/etags/ETAGS.good_3 +++ b/test/manual/etags/ETAGS.good_3 | |||
| @@ -2520,10 +2520,11 @@ main(37,571 | |||
| 2520 | D(43,659 | 2520 | D(43,659 |
| 2521 | int x;44,694 | 2521 | int x;44,694 |
| 2522 | 2522 | ||
| 2523 | el-src/TAGTEST.EL,148 | 2523 | el-src/TAGTEST.EL,179 |
| 2524 | (foo::defmumble bletch 1,0 | 2524 | (foo::defmumble bletch 1,0 |
| 2525 | (defalias 'pending-delete-mode pending-delete-mode5,102 | 2525 | (defun foo==bar foo==bar2,33 |
| 2526 | (defalias (quote explicitly-quoted-pending-delete-mode)8,175 | 2526 | (defalias 'pending-delete-mode pending-delete-mode6,149 |
| 2527 | (defalias (quote explicitly-quoted-pending-delete-mode)9,222 | ||
| 2527 | 2528 | ||
| 2528 | el-src/emacs/lisp/progmodes/etags.el,5069 | 2529 | el-src/emacs/lisp/progmodes/etags.el,5069 |
| 2529 | (defvar tags-file-name 34,1034 | 2530 | (defvar tags-file-name 34,1034 |
| @@ -3542,6 +3543,15 @@ module A9,57 | |||
| 3542 | alias_method ( :foo2,foo237,586 | 3543 | alias_method ( :foo2,foo237,586 |
| 3543 | A::Constant Constant42,655 | 3544 | A::Constant Constant42,655 |
| 3544 | 3545 | ||
| 3546 | scm-src/test.scm,260 | ||
| 3547 | (define hello 1,0 | ||
| 3548 | (set! hello 3,32 | ||
| 3549 | (define (hello-world)5,62 | ||
| 3550 | (define (there-is-a-=-in-the-middle!)there-is-a-=-in-the-middle!10,128 | ||
| 3551 | (define =starts-with-equals! =starts-with-equals!12,171 | ||
| 3552 | (define (((((curry-test 14,205 | ||
| 3553 | (define-syntax test-begin17,265 | ||
| 3554 | |||
| 3545 | tex-src/testenv.tex,52 | 3555 | tex-src/testenv.tex,52 |
| 3546 | \newcommand{\nm}\nm4,77 | 3556 | \newcommand{\nm}\nm4,77 |
| 3547 | \section{blah}blah8,139 | 3557 | \section{blah}blah8,139 |
| @@ -3552,11 +3562,11 @@ tex-src/gzip.texi,303 | |||
| 3552 | @node Overview,83,2705 | 3562 | @node Overview,83,2705 |
| 3553 | @node Sample,166,7272 | 3563 | @node Sample,166,7272 |
| 3554 | @node Invoking gzip,Invoking gzip210,8828 | 3564 | @node Invoking gzip,Invoking gzip210,8828 |
| 3555 | @node Advanced usage,Advanced usage357,13495 | 3565 | @node Advanced usage,Advanced usage357,13496 |
| 3556 | @node Environment,420,15207 | 3566 | @node Environment,420,15208 |
| 3557 | @node Tapes,437,15768 | 3567 | @node Tapes,437,15769 |
| 3558 | @node Problems,460,16767 | 3568 | @node Problems,460,16768 |
| 3559 | @node Concept Index,Concept Index473,17287 | 3569 | @node Concept Index,Concept Index473,17288 |
| 3560 | 3570 | ||
| 3561 | tex-src/texinfo.tex,30627 | 3571 | tex-src/texinfo.tex,30627 |
| 3562 | \def\texinfoversion{\texinfoversion26,1032 | 3572 | \def\texinfoversion{\texinfoversion26,1032 |
diff --git a/test/manual/etags/ETAGS.good_4 b/test/manual/etags/ETAGS.good_4 index 2c50ec1a742..460e31b5d96 100644 --- a/test/manual/etags/ETAGS.good_4 +++ b/test/manual/etags/ETAGS.good_4 | |||
| @@ -2307,10 +2307,11 @@ main(37,571 | |||
| 2307 | class D 41,622 | 2307 | class D 41,622 |
| 2308 | D(43,659 | 2308 | D(43,659 |
| 2309 | 2309 | ||
| 2310 | el-src/TAGTEST.EL,148 | 2310 | el-src/TAGTEST.EL,179 |
| 2311 | (foo::defmumble bletch 1,0 | 2311 | (foo::defmumble bletch 1,0 |
| 2312 | (defalias 'pending-delete-mode pending-delete-mode5,102 | 2312 | (defun foo==bar foo==bar2,33 |
| 2313 | (defalias (quote explicitly-quoted-pending-delete-mode)8,175 | 2313 | (defalias 'pending-delete-mode pending-delete-mode6,149 |
| 2314 | (defalias (quote explicitly-quoted-pending-delete-mode)9,222 | ||
| 2314 | 2315 | ||
| 2315 | el-src/emacs/lisp/progmodes/etags.el,5069 | 2316 | el-src/emacs/lisp/progmodes/etags.el,5069 |
| 2316 | (defvar tags-file-name 34,1034 | 2317 | (defvar tags-file-name 34,1034 |
| @@ -3299,6 +3300,15 @@ module A9,57 | |||
| 3299 | alias_method ( :foo2,foo237,586 | 3300 | alias_method ( :foo2,foo237,586 |
| 3300 | A::Constant Constant42,655 | 3301 | A::Constant Constant42,655 |
| 3301 | 3302 | ||
| 3303 | scm-src/test.scm,260 | ||
| 3304 | (define hello 1,0 | ||
| 3305 | (set! hello 3,32 | ||
| 3306 | (define (hello-world)5,62 | ||
| 3307 | (define (there-is-a-=-in-the-middle!)there-is-a-=-in-the-middle!10,128 | ||
| 3308 | (define =starts-with-equals! =starts-with-equals!12,171 | ||
| 3309 | (define (((((curry-test 14,205 | ||
| 3310 | (define-syntax test-begin17,265 | ||
| 3311 | |||
| 3302 | tex-src/testenv.tex,52 | 3312 | tex-src/testenv.tex,52 |
| 3303 | \newcommand{\nm}\nm4,77 | 3313 | \newcommand{\nm}\nm4,77 |
| 3304 | \section{blah}blah8,139 | 3314 | \section{blah}blah8,139 |
| @@ -3309,11 +3319,11 @@ tex-src/gzip.texi,303 | |||
| 3309 | @node Overview,83,2705 | 3319 | @node Overview,83,2705 |
| 3310 | @node Sample,166,7272 | 3320 | @node Sample,166,7272 |
| 3311 | @node Invoking gzip,Invoking gzip210,8828 | 3321 | @node Invoking gzip,Invoking gzip210,8828 |
| 3312 | @node Advanced usage,Advanced usage357,13495 | 3322 | @node Advanced usage,Advanced usage357,13496 |
| 3313 | @node Environment,420,15207 | 3323 | @node Environment,420,15208 |
| 3314 | @node Tapes,437,15768 | 3324 | @node Tapes,437,15769 |
| 3315 | @node Problems,460,16767 | 3325 | @node Problems,460,16768 |
| 3316 | @node Concept Index,Concept Index473,17287 | 3326 | @node Concept Index,Concept Index473,17288 |
| 3317 | 3327 | ||
| 3318 | tex-src/texinfo.tex,30627 | 3328 | tex-src/texinfo.tex,30627 |
| 3319 | \def\texinfoversion{\texinfoversion26,1032 | 3329 | \def\texinfoversion{\texinfoversion26,1032 |
diff --git a/test/manual/etags/ETAGS.good_5 b/test/manual/etags/ETAGS.good_5 index 2b431034f44..b7a31602f51 100644 --- a/test/manual/etags/ETAGS.good_5 +++ b/test/manual/etags/ETAGS.good_5 | |||
| @@ -3253,10 +3253,11 @@ main(37,571 | |||
| 3253 | D(43,659 | 3253 | D(43,659 |
| 3254 | int x;44,694 | 3254 | int x;44,694 |
| 3255 | 3255 | ||
| 3256 | el-src/TAGTEST.EL,148 | 3256 | el-src/TAGTEST.EL,179 |
| 3257 | (foo::defmumble bletch 1,0 | 3257 | (foo::defmumble bletch 1,0 |
| 3258 | (defalias 'pending-delete-mode pending-delete-mode5,102 | 3258 | (defun foo==bar foo==bar2,33 |
| 3259 | (defalias (quote explicitly-quoted-pending-delete-mode)8,175 | 3259 | (defalias 'pending-delete-mode pending-delete-mode6,149 |
| 3260 | (defalias (quote explicitly-quoted-pending-delete-mode)9,222 | ||
| 3260 | 3261 | ||
| 3261 | el-src/emacs/lisp/progmodes/etags.el,5188 | 3262 | el-src/emacs/lisp/progmodes/etags.el,5188 |
| 3262 | (defvar tags-file-name 34,1034 | 3263 | (defvar tags-file-name 34,1034 |
| @@ -4279,6 +4280,15 @@ module A9,57 | |||
| 4279 | alias_method ( :foo2,foo237,586 | 4280 | alias_method ( :foo2,foo237,586 |
| 4280 | A::Constant Constant42,655 | 4281 | A::Constant Constant42,655 |
| 4281 | 4282 | ||
| 4283 | scm-src/test.scm,260 | ||
| 4284 | (define hello 1,0 | ||
| 4285 | (set! hello 3,32 | ||
| 4286 | (define (hello-world)5,62 | ||
| 4287 | (define (there-is-a-=-in-the-middle!)there-is-a-=-in-the-middle!10,128 | ||
| 4288 | (define =starts-with-equals! =starts-with-equals!12,171 | ||
| 4289 | (define (((((curry-test 14,205 | ||
| 4290 | (define-syntax test-begin17,265 | ||
| 4291 | |||
| 4282 | tex-src/testenv.tex,52 | 4292 | tex-src/testenv.tex,52 |
| 4283 | \newcommand{\nm}\nm4,77 | 4293 | \newcommand{\nm}\nm4,77 |
| 4284 | \section{blah}blah8,139 | 4294 | \section{blah}blah8,139 |
| @@ -4289,11 +4299,11 @@ tex-src/gzip.texi,303 | |||
| 4289 | @node Overview,83,2705 | 4299 | @node Overview,83,2705 |
| 4290 | @node Sample,166,7272 | 4300 | @node Sample,166,7272 |
| 4291 | @node Invoking gzip,Invoking gzip210,8828 | 4301 | @node Invoking gzip,Invoking gzip210,8828 |
| 4292 | @node Advanced usage,Advanced usage357,13495 | 4302 | @node Advanced usage,Advanced usage357,13496 |
| 4293 | @node Environment,420,15207 | 4303 | @node Environment,420,15208 |
| 4294 | @node Tapes,437,15768 | 4304 | @node Tapes,437,15769 |
| 4295 | @node Problems,460,16767 | 4305 | @node Problems,460,16768 |
| 4296 | @node Concept Index,Concept Index473,17287 | 4306 | @node Concept Index,Concept Index473,17288 |
| 4297 | 4307 | ||
| 4298 | tex-src/texinfo.tex,30627 | 4308 | tex-src/texinfo.tex,30627 |
| 4299 | \def\texinfoversion{\texinfoversion26,1032 | 4309 | \def\texinfoversion{\texinfoversion26,1032 |
diff --git a/test/manual/etags/ETAGS.good_6 b/test/manual/etags/ETAGS.good_6 index 2cb0d05e72a..a75fd806968 100644 --- a/test/manual/etags/ETAGS.good_6 +++ b/test/manual/etags/ETAGS.good_6 | |||
| @@ -3253,10 +3253,11 @@ main(37,571 | |||
| 3253 | D(D::D43,659 | 3253 | D(D::D43,659 |
| 3254 | int x;D::x44,694 | 3254 | int x;D::x44,694 |
| 3255 | 3255 | ||
| 3256 | el-src/TAGTEST.EL,148 | 3256 | el-src/TAGTEST.EL,179 |
| 3257 | (foo::defmumble bletch 1,0 | 3257 | (foo::defmumble bletch 1,0 |
| 3258 | (defalias 'pending-delete-mode pending-delete-mode5,102 | 3258 | (defun foo==bar foo==bar2,33 |
| 3259 | (defalias (quote explicitly-quoted-pending-delete-mode)8,175 | 3259 | (defalias 'pending-delete-mode pending-delete-mode6,149 |
| 3260 | (defalias (quote explicitly-quoted-pending-delete-mode)9,222 | ||
| 3260 | 3261 | ||
| 3261 | el-src/emacs/lisp/progmodes/etags.el,5188 | 3262 | el-src/emacs/lisp/progmodes/etags.el,5188 |
| 3262 | (defvar tags-file-name 34,1034 | 3263 | (defvar tags-file-name 34,1034 |
| @@ -4279,6 +4280,15 @@ module A9,57 | |||
| 4279 | alias_method ( :foo2,foo237,586 | 4280 | alias_method ( :foo2,foo237,586 |
| 4280 | A::Constant Constant42,655 | 4281 | A::Constant Constant42,655 |
| 4281 | 4282 | ||
| 4283 | scm-src/test.scm,260 | ||
| 4284 | (define hello 1,0 | ||
| 4285 | (set! hello 3,32 | ||
| 4286 | (define (hello-world)5,62 | ||
| 4287 | (define (there-is-a-=-in-the-middle!)there-is-a-=-in-the-middle!10,128 | ||
| 4288 | (define =starts-with-equals! =starts-with-equals!12,171 | ||
| 4289 | (define (((((curry-test 14,205 | ||
| 4290 | (define-syntax test-begin17,265 | ||
| 4291 | |||
| 4282 | tex-src/testenv.tex,52 | 4292 | tex-src/testenv.tex,52 |
| 4283 | \newcommand{\nm}\nm4,77 | 4293 | \newcommand{\nm}\nm4,77 |
| 4284 | \section{blah}blah8,139 | 4294 | \section{blah}blah8,139 |
| @@ -4289,11 +4299,11 @@ tex-src/gzip.texi,303 | |||
| 4289 | @node Overview,83,2705 | 4299 | @node Overview,83,2705 |
| 4290 | @node Sample,166,7272 | 4300 | @node Sample,166,7272 |
| 4291 | @node Invoking gzip,Invoking gzip210,8828 | 4301 | @node Invoking gzip,Invoking gzip210,8828 |
| 4292 | @node Advanced usage,Advanced usage357,13495 | 4302 | @node Advanced usage,Advanced usage357,13496 |
| 4293 | @node Environment,420,15207 | 4303 | @node Environment,420,15208 |
| 4294 | @node Tapes,437,15768 | 4304 | @node Tapes,437,15769 |
| 4295 | @node Problems,460,16767 | 4305 | @node Problems,460,16768 |
| 4296 | @node Concept Index,Concept Index473,17287 | 4306 | @node Concept Index,Concept Index473,17288 |
| 4297 | 4307 | ||
| 4298 | tex-src/texinfo.tex,30627 | 4308 | tex-src/texinfo.tex,30627 |
| 4299 | \def\texinfoversion{\texinfoversion26,1032 | 4309 | \def\texinfoversion{\texinfoversion26,1032 |
diff --git a/test/manual/etags/Makefile b/test/manual/etags/Makefile index 07ad0f46416..c1df703905e 100644 --- a/test/manual/etags/Makefile +++ b/test/manual/etags/Makefile | |||
| @@ -25,12 +25,13 @@ PSSRC=$(addprefix ./ps-src/,rfc1245.ps) | |||
| 25 | PROLSRC=$(addprefix ./prol-src/,ordsets.prolog natded.prolog) | 25 | PROLSRC=$(addprefix ./prol-src/,ordsets.prolog natded.prolog) |
| 26 | PYTSRC=$(addprefix ./pyt-src/,server.py) | 26 | PYTSRC=$(addprefix ./pyt-src/,server.py) |
| 27 | RBSRC=$(addprefix ./ruby-src/,test.rb test1.ru) | 27 | RBSRC=$(addprefix ./ruby-src/,test.rb test1.ru) |
| 28 | SCMSRC=$(addprefix ./scm-src/,test.scm) | ||
| 28 | TEXSRC=$(addprefix ./tex-src/,testenv.tex gzip.texi texinfo.tex nonewline.tex) | 29 | TEXSRC=$(addprefix ./tex-src/,testenv.tex gzip.texi texinfo.tex nonewline.tex) |
| 29 | YSRC=$(addprefix ./y-src/,parse.y parse.c atest.y cccp.c cccp.y) | 30 | YSRC=$(addprefix ./y-src/,parse.y parse.c atest.y cccp.c cccp.y) |
| 30 | SRCS=${ADASRC} ${ASRC} ${CSRC} ${CPSRC} ${ELSRC} ${ERLSRC} ${FSRC}\ | 31 | SRCS=${ADASRC} ${ASRC} ${CSRC} ${CPSRC} ${ELSRC} ${ERLSRC} ${FSRC}\ |
| 31 | ${FORTHSRC} ${GOSRC} ${HTMLSRC} ${JAVASRC} ${LUASRC} ${MAKESRC}\ | 32 | ${FORTHSRC} ${GOSRC} ${HTMLSRC} ${JAVASRC} ${LUASRC} ${MAKESRC}\ |
| 32 | ${OBJCSRC} ${OBJCPPSRC} ${PASSRC} ${PHPSRC} ${PERLSRC} ${PSSRC}\ | 33 | ${OBJCSRC} ${OBJCPPSRC} ${PASSRC} ${PHPSRC} ${PERLSRC} ${PSSRC}\ |
| 33 | ${PROLSRC} ${PYTSRC} ${RBSRC} ${TEXSRC} ${YSRC} | 34 | ${PROLSRC} ${PYTSRC} ${RBSRC} ${SCMSRC} ${TEXSRC} ${YSRC} |
| 34 | NONSRCS=./f-src/entry.strange ./erl-src/lists.erl ./cp-src/clheir.hpp.gz | 35 | NONSRCS=./f-src/entry.strange ./erl-src/lists.erl ./cp-src/clheir.hpp.gz |
| 35 | 36 | ||
| 36 | ETAGS_PROG=../../../lib-src/etags | 37 | ETAGS_PROG=../../../lib-src/etags |
diff --git a/test/manual/etags/el-src/TAGTEST.EL b/test/manual/etags/el-src/TAGTEST.EL index acf0baf82f0..89a67913771 100644 --- a/test/manual/etags/el-src/TAGTEST.EL +++ b/test/manual/etags/el-src/TAGTEST.EL | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | (foo::defmumble bletch beuarghh) | 1 | (foo::defmumble bletch beuarghh) |
| 2 | (defun foo==bar () (message "hi")) ; Bug#5624 | ||
| 2 | ;;; Ctags test file for lisp mode. | 3 | ;;; Ctags test file for lisp mode. |
| 3 | 4 | ||
| 4 | ;; from emacs/lisp/delsel.el:76: | 5 | ;; from emacs/lisp/delsel.el:76: |
diff --git a/test/manual/etags/scm-src/test.scm b/test/manual/etags/scm-src/test.scm new file mode 100644 index 00000000000..e3921e718fc --- /dev/null +++ b/test/manual/etags/scm-src/test.scm | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | (define hello "Hello, Emacs!") | ||
| 2 | |||
| 3 | (set! hello "Hello, world!") | ||
| 4 | |||
| 5 | (define (hello-world) | ||
| 6 | (display hello) | ||
| 7 | (newline)) | ||
| 8 | |||
| 9 | ;; Bug 5624 | ||
| 10 | (define (there-is-a-=-in-the-middle!) #t) | ||
| 11 | |||
| 12 | (define =starts-with-equals! #t) | ||
| 13 | |||
| 14 | (define (((((curry-test a) b) c) d) e) | ||
| 15 | (list a b c d e)) | ||
| 16 | |||
| 17 | (define-syntax test-begin | ||
| 18 | (syntax-rules () | ||
| 19 | ((test-begin exp ...) | ||
| 20 | ((lambda () exp ...))))) | ||