aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Gramiak2017-07-08 11:25:53 +0300
committerEli Zaretskii2017-07-08 11:25:53 +0300
commit42cdb68649c24eab07baa39b0c553c87e7ac9989 (patch)
tree8dd97bc0a5c6733287a86427b8239884d7192971
parent92307cb05d8b0d05dab7981f30c13962f8050eb0 (diff)
downloademacs-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.c29
-rw-r--r--test/manual/etags/CTAGS.good8
-rw-r--r--test/manual/etags/ETAGS.good_126
-rw-r--r--test/manual/etags/ETAGS.good_226
-rw-r--r--test/manual/etags/ETAGS.good_326
-rw-r--r--test/manual/etags/ETAGS.good_426
-rw-r--r--test/manual/etags/ETAGS.good_526
-rw-r--r--test/manual/etags/ETAGS.good_626
-rw-r--r--test/manual/etags/Makefile3
-rw-r--r--test/manual/etags/el-src/TAGTEST.EL1
-rw-r--r--test/manual/etags/scm-src/test.scm20
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 *);
373static long readline_internal (linebuffer *, FILE *, char const *); 373static long readline_internal (linebuffer *, FILE *, char const *);
374static bool nocase_tail (const char *); 374static bool nocase_tail (const char *);
375static void get_tag (char *, char **); 375static void get_tag (char *, char **);
376static void get_lispy_tag (char *);
376 377
377static void analyze_regex (char *); 378static void analyze_regex (char *);
378static void free_regexps (void); 379static 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
5353static void 5354static 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. */
6596static void
6597get_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
2750current-input-mode c-src/emacs/src/keyboard.c /^DEFUN ("current-input-mode", Fcurrent_input_mode, / 2751current-input-mode c-src/emacs/src/keyboard.c /^DEFUN ("current-input-mode", Fcurrent_input_mode, /
2751current_kboard c-src/emacs/src/keyboard.c 85 2752current_kboard c-src/emacs/src/keyboard.c 85
2752current_lb_is_new c-src/etags.c 2926 2753current_lb_is_new c-src/etags.c 2926
2754curry-test scm-src/test.scm /^(define (((((curry-test a) b) c) d) e)$/
2753cursor_position cp-src/screen.cpp /^void cursor_position(void)$/ 2755cursor_position cp-src/screen.cpp /^void cursor_position(void)$/
2754cursor_x cp-src/screen.cpp 15 2756cursor_x cp-src/screen.cpp 15
2755cursor_y cp-src/screen.cpp 15 2757cursor_y cp-src/screen.cpp 15
@@ -3037,6 +3039,7 @@ foo ruby-src/test1.ru /^ attr_reader :foo$/
3037foo! ruby-src/test1.ru /^ def foo!$/ 3039foo! ruby-src/test1.ru /^ def foo!$/
3038foo1 ruby-src/test1.ru /^ attr_reader(:foo1, :bar1, # comment$/ 3040foo1 ruby-src/test1.ru /^ attr_reader(:foo1, :bar1, # comment$/
3039foo2 ruby-src/test1.ru /^ alias_method ( :foo2, #cmmt$/ 3041foo2 ruby-src/test1.ru /^ alias_method ( :foo2, #cmmt$/
3042foo==bar el-src/TAGTEST.EL /^(defun foo==bar () (message "hi")) ; Bug#5624$/
3040foobar c-src/c.c /^int foobar() {;}$/ 3043foobar c-src/c.c /^int foobar() {;}$/
3041foobar c.c /^extern void foobar (void) __attribute__ ((section / 3044foobar c.c /^extern void foobar (void) __attribute__ ((section /
3042foobar2 c-src/h.h 20 3045foobar2 c-src/h.h 20
@@ -3161,6 +3164,9 @@ header c-src/emacs/src/lisp.h 1672
3161header c-src/emacs/src/lisp.h 1826 3164header c-src/emacs/src/lisp.h 1826
3162header_size c-src/emacs/src/lisp.h 1471 3165header_size c-src/emacs/src/lisp.h 1471
3163heapsize c-src/emacs/src/gmalloc.c 361 3166heapsize c-src/emacs/src/gmalloc.c 361
3167hello scm-src/test.scm /^(define hello "Hello, Emacs!")$/
3168hello scm-src/test.scm /^(set! hello "Hello, world!")$/
3169hello-world scm-src/test.scm /^(define (hello-world)$/
3164help c-src/etags.c 193 3170help c-src/etags.c 193
3165helpPanel objcpp-src/SimpleCalc.M /^- helpPanel:sender$/ 3171helpPanel objcpp-src/SimpleCalc.M /^- helpPanel:sender$/
3166help_char_p c-src/emacs/src/keyboard.c /^help_char_p (Lisp_Object c)$/ 3172help_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() ->$/
4317test go-src/test1.go /^func test(p plus) {$/ 4323test go-src/test1.go /^func test(p plus) {$/
4318test make-src/Makefile /^test:$/ 4324test make-src/Makefile /^test:$/
4319test php-src/ptest.php /^test $/ 4325test php-src/ptest.php /^test $/
4326test-begin scm-src/test.scm /^(define-syntax test-begin$/
4320test.me22b lua-src/test.lua /^ local function test.me22b (one)$/ 4327test.me22b lua-src/test.lua /^ local function test.me22b (one)$/
4321test.me_22a lua-src/test.lua /^ function test.me_22a(one, two)$/ 4328test.me_22a lua-src/test.lua /^ function test.me_22a(one, two)$/
4322test_undefined c-src/emacs/src/keyboard.c /^test_undefined (Lisp_Object binding)$/ 4329test_undefined c-src/emacs/src/keyboard.c /^test_undefined (Lisp_Object binding)$/
4323texttreelist prol-src/natded.prolog /^texttreelist([]).$/ 4330texttreelist prol-src/natded.prolog /^texttreelist([]).$/
4331there-is-a-=-in-the-middle! scm-src/test.scm /^(define (there-is-a-=-in-the-middle!) #t)$/
4324this c-src/a/b/b.c 1 4332this c-src/a/b/b.c 1
4325this-command-keys c-src/emacs/src/keyboard.c /^DEFUN ("this-command-keys", Fthis_command_keys, St/ 4333this-command-keys c-src/emacs/src/keyboard.c /^DEFUN ("this-command-keys", Fthis_command_keys, St/
4326this-command-keys-vector c-src/emacs/src/keyboard.c /^DEFUN ("this-command-keys-vector", Fthis_command_k/ 4334this-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
2146el-src/TAGTEST.EL,148 2146el-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
2151el-src/emacs/lisp/progmodes/etags.el,5069 2152el-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
3136A::Constant Constant42,655 3137A::Constant Constant42,655
3137 3138
3139scm-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
3138tex-src/testenv.tex,52 3148tex-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
3154tex-src/texinfo.tex,30627 3164tex-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
2715el-src/TAGTEST.EL,148 2715el-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
2720el-src/emacs/lisp/progmodes/etags.el,5188 2721el-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
3709A::Constant Constant42,655 3710A::Constant Constant42,655
3710 3711
3712scm-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
3711tex-src/testenv.tex,52 3721tex-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
3727tex-src/texinfo.tex,30627 3737tex-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
2523el-src/TAGTEST.EL,148 2523el-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
2528el-src/emacs/lisp/progmodes/etags.el,5069 2529el-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
3543A::Constant Constant42,655 3544A::Constant Constant42,655
3544 3545
3546scm-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
3545tex-src/testenv.tex,52 3555tex-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
3561tex-src/texinfo.tex,30627 3571tex-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
2310el-src/TAGTEST.EL,148 2310el-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
2315el-src/emacs/lisp/progmodes/etags.el,5069 2316el-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
3300A::Constant Constant42,655 3301A::Constant Constant42,655
3301 3302
3303scm-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
3302tex-src/testenv.tex,52 3312tex-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
3318tex-src/texinfo.tex,30627 3328tex-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
3256el-src/TAGTEST.EL,148 3256el-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
3261el-src/emacs/lisp/progmodes/etags.el,5188 3262el-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
4280A::Constant Constant42,655 4281A::Constant Constant42,655
4281 4282
4283scm-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
4282tex-src/testenv.tex,52 4292tex-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
4298tex-src/texinfo.tex,30627 4308tex-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
3256el-src/TAGTEST.EL,148 3256el-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
3261el-src/emacs/lisp/progmodes/etags.el,5188 3262el-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
4280A::Constant Constant42,655 4281A::Constant Constant42,655
4281 4282
4283scm-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
4282tex-src/testenv.tex,52 4292tex-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
4298tex-src/texinfo.tex,30627 4308tex-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)
25PROLSRC=$(addprefix ./prol-src/,ordsets.prolog natded.prolog) 25PROLSRC=$(addprefix ./prol-src/,ordsets.prolog natded.prolog)
26PYTSRC=$(addprefix ./pyt-src/,server.py) 26PYTSRC=$(addprefix ./pyt-src/,server.py)
27RBSRC=$(addprefix ./ruby-src/,test.rb test1.ru) 27RBSRC=$(addprefix ./ruby-src/,test.rb test1.ru)
28SCMSRC=$(addprefix ./scm-src/,test.scm)
28TEXSRC=$(addprefix ./tex-src/,testenv.tex gzip.texi texinfo.tex nonewline.tex) 29TEXSRC=$(addprefix ./tex-src/,testenv.tex gzip.texi texinfo.tex nonewline.tex)
29YSRC=$(addprefix ./y-src/,parse.y parse.c atest.y cccp.c cccp.y) 30YSRC=$(addprefix ./y-src/,parse.y parse.c atest.y cccp.c cccp.y)
30SRCS=${ADASRC} ${ASRC} ${CSRC} ${CPSRC} ${ELSRC} ${ERLSRC} ${FSRC}\ 31SRCS=${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}
34NONSRCS=./f-src/entry.strange ./erl-src/lists.erl ./cp-src/clheir.hpp.gz 35NONSRCS=./f-src/entry.strange ./erl-src/lists.erl ./cp-src/clheir.hpp.gz
35 36
36ETAGS_PROG=../../../lib-src/etags 37ETAGS_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 ...)))))