diff options
| author | Dmitry Gutov | 2016-01-19 08:03:41 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2016-01-19 08:03:41 +0300 |
| commit | 2ac78c2346c94f30bf0253321ba4e4628a03ed72 (patch) | |
| tree | 4e0dc3f878693cfaf7f7ad6c1c19b9e02514b290 | |
| parent | 29da1cb3e7d54f93c0b4f6de00e9fda294a0cdff (diff) | |
| download | emacs-2ac78c2346c94f30bf0253321ba4e4628a03ed72.tar.gz emacs-2ac78c2346c94f30bf0253321ba4e4628a03ed72.zip | |
Rename methods in Ruby etags example file
* test/etags/ruby-src/test.rb: Rename the example methods to
correspond to the common terminology used in Ruby.
* test/etags/CTAGS.good:
* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/ETAGS.good_6: Adjust accordingly.
| -rw-r--r-- | test/etags/CTAGS.good | 14 | ||||
| -rw-r--r-- | test/etags/ETAGS.good_1 | 14 | ||||
| -rw-r--r-- | test/etags/ETAGS.good_2 | 14 | ||||
| -rw-r--r-- | test/etags/ETAGS.good_3 | 14 | ||||
| -rw-r--r-- | test/etags/ETAGS.good_4 | 14 | ||||
| -rw-r--r-- | test/etags/ETAGS.good_5 | 14 | ||||
| -rw-r--r-- | test/etags/ETAGS.good_6 | 14 | ||||
| -rw-r--r-- | test/etags/ruby-src/test.rb | 34 |
8 files changed, 68 insertions, 64 deletions
diff --git a/test/etags/CTAGS.good b/test/etags/CTAGS.good index 245f6703adf..86b019a2b4c 100644 --- a/test/etags/CTAGS.good +++ b/test/etags/CTAGS.good | |||
| @@ -438,7 +438,7 @@ Cjava_entries c-src/etags.c /^Cjava_entries (FILE *inf)$/ | |||
| 438 | Cjava_help c-src/etags.c 551 | 438 | Cjava_help c-src/etags.c 551 |
| 439 | Cjava_suffixes c-src/etags.c 549 | 439 | Cjava_suffixes c-src/etags.c 549 |
| 440 | ClassExample ruby-src/test.rb /^ class ClassExample$/ | 440 | ClassExample ruby-src/test.rb /^ class ClassExample$/ |
| 441 | ClassExample.singleton_class_method ruby-src/test.rb /^ def ClassExample.singleton_class_method$/ | 441 | ClassExample.class_method ruby-src/test.rb /^ def ClassExample.class_method$/ |
| 442 | Clear/p ada-src/2ataspri.adb /^ procedure Clear (Cell : in out TAS_Cell) is$/ | 442 | Clear/p ada-src/2ataspri.adb /^ procedure Clear (Cell : in out TAS_Cell) is$/ |
| 443 | Clear/p ada-src/2ataspri.ads /^ procedure Clear (Cell : in out TAS_Cell)/ | 443 | Clear/p ada-src/2ataspri.ads /^ procedure Clear (Cell : in out TAS_Cell)/ |
| 444 | Cobol_help c-src/etags.c 558 | 444 | Cobol_help c-src/etags.c 558 |
| @@ -939,7 +939,7 @@ Metags c-src/etags.c /^main (int argc, char **argv)$/ | |||
| 939 | Mfail cp-src/fail.C /^main()$/ | 939 | Mfail cp-src/fail.C /^main()$/ |
| 940 | Mkai-test.pl perl-src/kai-test.pl /^package main;$/ | 940 | Mkai-test.pl perl-src/kai-test.pl /^package main;$/ |
| 941 | ModuleExample ruby-src/test.rb /^module ModuleExample$/ | 941 | ModuleExample ruby-src/test.rb /^module ModuleExample$/ |
| 942 | ModuleExample.singleton_module_method ruby-src/test.rb /^ def ModuleExample.singleton_module_method$/ | 942 | ModuleExample.module_class_method ruby-src/test.rb /^ def ModuleExample.module_class_method$/ |
| 943 | More_Lisp_Bits c-src/emacs/src/lisp.h 801 | 943 | More_Lisp_Bits c-src/emacs/src/lisp.h 801 |
| 944 | MoveLayerAfter lua-src/allegro.lua /^function MoveLayerAfter (this_one)$/ | 944 | MoveLayerAfter lua-src/allegro.lua /^function MoveLayerAfter (this_one)$/ |
| 945 | MoveLayerBefore lua-src/allegro.lua /^function MoveLayerBefore (this_one)$/ | 945 | MoveLayerBefore lua-src/allegro.lua /^function MoveLayerBefore (this_one)$/ |
| @@ -2620,10 +2620,10 @@ childDidExit objc-src/Subprocess.m /^- childDidExit$/ | |||
| 2620 | chunks_free c-src/emacs/src/gmalloc.c 313 | 2620 | chunks_free c-src/emacs/src/gmalloc.c 313 |
| 2621 | chunks_used c-src/emacs/src/gmalloc.c 311 | 2621 | chunks_used c-src/emacs/src/gmalloc.c 311 |
| 2622 | cjava c-src/etags.c 2936 | 2622 | cjava c-src/etags.c 2936 |
| 2623 | class_method ruby-src/test.rb /^ def class_method$/ | 2623 | instance_method ruby-src/test.rb /^ def instance_method$/ |
| 2624 | class_method_equals= ruby-src/test.rb /^ def class_method_equals=$/ | 2624 | instance_method_equals= ruby-src/test.rb /^ def instance_method_equals=$/ |
| 2625 | class_method_exclamation! ruby-src/test.rb /^ def class_method_exclamation!$/ | 2625 | instance_method_exclamation! ruby-src/test.rb /^ def instance_method_exclamation!$/ |
| 2626 | class_method_question? ruby-src/test.rb /^ def class_method_question?$/ | 2626 | instance_method_question? ruby-src/test.rb /^ def instance_method_question?$/ |
| 2627 | classifyLine php-src/lce_functions.php /^ function classifyLine($line)$/ | 2627 | classifyLine php-src/lce_functions.php /^ function classifyLine($line)$/ |
| 2628 | clear cp-src/conway.hpp /^ void clear(void) { alive = 0; }$/ | 2628 | clear cp-src/conway.hpp /^ void clear(void) { alive = 0; }$/ |
| 2629 | clear-abbrev-table c-src/abbrev.c /^DEFUN ("clear-abbrev-table", Fclear_abbrev_table, / | 2629 | clear-abbrev-table c-src/abbrev.c /^DEFUN ("clear-abbrev-table", Fclear_abbrev_table, / |
| @@ -3450,7 +3450,7 @@ miti html-src/softwarelibero.html /^Sfatiamo alcuni miti$/ | |||
| 3450 | modifier_names c-src/emacs/src/keyboard.c 6319 | 3450 | modifier_names c-src/emacs/src/keyboard.c 6319 |
| 3451 | modifier_symbols c-src/emacs/src/keyboard.c 6327 | 3451 | modifier_symbols c-src/emacs/src/keyboard.c 6327 |
| 3452 | modify_event_symbol c-src/emacs/src/keyboard.c /^modify_event_symbol (ptrdiff_t symbol_num, int mod/ | 3452 | modify_event_symbol c-src/emacs/src/keyboard.c /^modify_event_symbol (ptrdiff_t symbol_num, int mod/ |
| 3453 | module_method ruby-src/test.rb /^ def module_method$/ | 3453 | module_instance_method ruby-src/test.rb /^ def module_instance_method$/ |
| 3454 | more_aligned_int c.c 165 | 3454 | more_aligned_int c.c 165 |
| 3455 | morecore_nolock c-src/emacs/src/gmalloc.c /^morecore_nolock (size_t size)$/ | 3455 | morecore_nolock c-src/emacs/src/gmalloc.c /^morecore_nolock (size_t size)$/ |
| 3456 | morecore_recursing c-src/emacs/src/gmalloc.c 604 | 3456 | morecore_recursing c-src/emacs/src/gmalloc.c 604 |
diff --git a/test/etags/ETAGS.good_1 b/test/etags/ETAGS.good_1 index 2ae4ec41256..dac20910347 100644 --- a/test/etags/ETAGS.good_1 +++ b/test/etags/ETAGS.good_1 | |||
| @@ -2980,11 +2980,11 @@ class Configure(760,24879 | |||
| 2980 | ruby-src/test.rb,594 | 2980 | ruby-src/test.rb,594 |
| 2981 | module ModuleExample1,0 | 2981 | module ModuleExample1,0 |
| 2982 | class ClassExample2,21 | 2982 | class ClassExample2,21 |
| 2983 | def class_method3,44 | 2983 | def instance_method3,44 |
| 2984 | def ClassExample.singleton_class_method6,116 | 2984 | def ClassExample.class_method6,116 |
| 2985 | def class_method_exclamation!9,221 | 2985 | def instance_method_exclamation!9,221 |
| 2986 | def class_method_question?12,319 | 2986 | def instance_method_question?12,319 |
| 2987 | def class_method_equals=class_method_equals=15,411 | 2987 | def instance_method_equals=class_method_equals=15,411 |
| 2988 | def `(18,499 | 2988 | def `(18,499 |
| 2989 | def +(21,589 | 2989 | def +(21,589 |
| 2990 | def [](24,637 | 2990 | def [](24,637 |
| @@ -2994,8 +2994,8 @@ module ModuleExample1,0 | |||
| 2994 | def <=(<=36,869 | 2994 | def <=(<=36,869 |
| 2995 | def <=>(<=>39,940 | 2995 | def <=>(<=>39,940 |
| 2996 | def ===(===42,987 | 2996 | def ===(===42,987 |
| 2997 | def module_method46,1048 | 2997 | def module_instance_method46,1048 |
| 2998 | def ModuleExample.singleton_module_method49,1110 | 2998 | def ModuleExample.module_class_method49,1110 |
| 2999 | 2999 | ||
| 3000 | ruby-src/test1.ruby,37 | 3000 | ruby-src/test1.ruby,37 |
| 3001 | class A1,0 | 3001 | class A1,0 |
diff --git a/test/etags/ETAGS.good_2 b/test/etags/ETAGS.good_2 index 3ec5b21d384..e5dbefbbd0d 100644 --- a/test/etags/ETAGS.good_2 +++ b/test/etags/ETAGS.good_2 | |||
| @@ -3551,11 +3551,11 @@ class Configure(760,24879 | |||
| 3551 | ruby-src/test.rb,594 | 3551 | ruby-src/test.rb,594 |
| 3552 | module ModuleExample1,0 | 3552 | module ModuleExample1,0 |
| 3553 | class ClassExample2,21 | 3553 | class ClassExample2,21 |
| 3554 | def class_method3,44 | 3554 | def instance_method3,44 |
| 3555 | def ClassExample.singleton_class_method6,116 | 3555 | def ClassExample.class_method6,116 |
| 3556 | def class_method_exclamation!9,221 | 3556 | def instance_method_exclamation!9,221 |
| 3557 | def class_method_question?12,319 | 3557 | def instance_method_question?12,319 |
| 3558 | def class_method_equals=class_method_equals=15,411 | 3558 | def instance_method_equals=class_method_equals=15,411 |
| 3559 | def `(18,499 | 3559 | def `(18,499 |
| 3560 | def +(21,589 | 3560 | def +(21,589 |
| 3561 | def [](24,637 | 3561 | def [](24,637 |
| @@ -3565,8 +3565,8 @@ module ModuleExample1,0 | |||
| 3565 | def <=(<=36,869 | 3565 | def <=(<=36,869 |
| 3566 | def <=>(<=>39,940 | 3566 | def <=>(<=>39,940 |
| 3567 | def ===(===42,987 | 3567 | def ===(===42,987 |
| 3568 | def module_method46,1048 | 3568 | def module_instance_method46,1048 |
| 3569 | def ModuleExample.singleton_module_method49,1110 | 3569 | def ModuleExample.module_class_method49,1110 |
| 3570 | 3570 | ||
| 3571 | ruby-src/test1.ruby,37 | 3571 | ruby-src/test1.ruby,37 |
| 3572 | class A1,0 | 3572 | class A1,0 |
diff --git a/test/etags/ETAGS.good_3 b/test/etags/ETAGS.good_3 index 43b84eed5d2..804440aad6d 100644 --- a/test/etags/ETAGS.good_3 +++ b/test/etags/ETAGS.good_3 | |||
| @@ -3324,11 +3324,11 @@ class Configure(760,24879 | |||
| 3324 | ruby-src/test.rb,594 | 3324 | ruby-src/test.rb,594 |
| 3325 | module ModuleExample1,0 | 3325 | module ModuleExample1,0 |
| 3326 | class ClassExample2,21 | 3326 | class ClassExample2,21 |
| 3327 | def class_method3,44 | 3327 | def instance_method3,44 |
| 3328 | def ClassExample.singleton_class_method6,116 | 3328 | def ClassExample.class_method6,116 |
| 3329 | def class_method_exclamation!9,221 | 3329 | def instance_method_exclamation!9,221 |
| 3330 | def class_method_question?12,319 | 3330 | def instance_method_question?12,319 |
| 3331 | def class_method_equals=class_method_equals=15,411 | 3331 | def instance_method_equals=class_method_equals=15,411 |
| 3332 | def `(18,499 | 3332 | def `(18,499 |
| 3333 | def +(21,589 | 3333 | def +(21,589 |
| 3334 | def [](24,637 | 3334 | def [](24,637 |
| @@ -3338,8 +3338,8 @@ module ModuleExample1,0 | |||
| 3338 | def <=(<=36,869 | 3338 | def <=(<=36,869 |
| 3339 | def <=>(<=>39,940 | 3339 | def <=>(<=>39,940 |
| 3340 | def ===(===42,987 | 3340 | def ===(===42,987 |
| 3341 | def module_method46,1048 | 3341 | def module_instance_method46,1048 |
| 3342 | def ModuleExample.singleton_module_method49,1110 | 3342 | def ModuleExample.module_class_method49,1110 |
| 3343 | 3343 | ||
| 3344 | ruby-src/test1.ruby,37 | 3344 | ruby-src/test1.ruby,37 |
| 3345 | class A1,0 | 3345 | class A1,0 |
diff --git a/test/etags/ETAGS.good_4 b/test/etags/ETAGS.good_4 index 434fe13cbd4..3b904ebe37c 100644 --- a/test/etags/ETAGS.good_4 +++ b/test/etags/ETAGS.good_4 | |||
| @@ -3144,11 +3144,11 @@ class Configure(760,24879 | |||
| 3144 | ruby-src/test.rb,594 | 3144 | ruby-src/test.rb,594 |
| 3145 | module ModuleExample1,0 | 3145 | module ModuleExample1,0 |
| 3146 | class ClassExample2,21 | 3146 | class ClassExample2,21 |
| 3147 | def class_method3,44 | 3147 | def instance_method3,44 |
| 3148 | def ClassExample.singleton_class_method6,116 | 3148 | def ClassExample.class_method6,116 |
| 3149 | def class_method_exclamation!9,221 | 3149 | def instance_method_exclamation!9,221 |
| 3150 | def class_method_question?12,319 | 3150 | def instance_method_question?12,319 |
| 3151 | def class_method_equals=class_method_equals=15,411 | 3151 | def instance_method_equals=class_method_equals=15,411 |
| 3152 | def `(18,499 | 3152 | def `(18,499 |
| 3153 | def +(21,589 | 3153 | def +(21,589 |
| 3154 | def [](24,637 | 3154 | def [](24,637 |
| @@ -3158,8 +3158,8 @@ module ModuleExample1,0 | |||
| 3158 | def <=(<=36,869 | 3158 | def <=(<=36,869 |
| 3159 | def <=>(<=>39,940 | 3159 | def <=>(<=>39,940 |
| 3160 | def ===(===42,987 | 3160 | def ===(===42,987 |
| 3161 | def module_method46,1048 | 3161 | def module_instance_method46,1048 |
| 3162 | def ModuleExample.singleton_module_method49,1110 | 3162 | def ModuleExample.module_class_method49,1110 |
| 3163 | 3163 | ||
| 3164 | ruby-src/test1.ruby,37 | 3164 | ruby-src/test1.ruby,37 |
| 3165 | class A1,0 | 3165 | class A1,0 |
diff --git a/test/etags/ETAGS.good_5 b/test/etags/ETAGS.good_5 index 425e2526f35..c3a277829f0 100644 --- a/test/etags/ETAGS.good_5 +++ b/test/etags/ETAGS.good_5 | |||
| @@ -4059,11 +4059,11 @@ class Configure(760,24879 | |||
| 4059 | ruby-src/test.rb,594 | 4059 | ruby-src/test.rb,594 |
| 4060 | module ModuleExample1,0 | 4060 | module ModuleExample1,0 |
| 4061 | class ClassExample2,21 | 4061 | class ClassExample2,21 |
| 4062 | def class_method3,44 | 4062 | def instance_method3,44 |
| 4063 | def ClassExample.singleton_class_method6,116 | 4063 | def ClassExample.class_method6,116 |
| 4064 | def class_method_exclamation!9,221 | 4064 | def instance_method_exclamation!9,221 |
| 4065 | def class_method_question?12,319 | 4065 | def instance_method_question?12,319 |
| 4066 | def class_method_equals=class_method_equals=15,411 | 4066 | def instance_method_equals=class_method_equals=15,411 |
| 4067 | def `(18,499 | 4067 | def `(18,499 |
| 4068 | def +(21,589 | 4068 | def +(21,589 |
| 4069 | def [](24,637 | 4069 | def [](24,637 |
| @@ -4073,8 +4073,8 @@ module ModuleExample1,0 | |||
| 4073 | def <=(<=36,869 | 4073 | def <=(<=36,869 |
| 4074 | def <=>(<=>39,940 | 4074 | def <=>(<=>39,940 |
| 4075 | def ===(===42,987 | 4075 | def ===(===42,987 |
| 4076 | def module_method46,1048 | 4076 | def module_instance_method46,1048 |
| 4077 | def ModuleExample.singleton_module_method49,1110 | 4077 | def ModuleExample.module_class_method49,1110 |
| 4078 | 4078 | ||
| 4079 | ruby-src/test1.ruby,37 | 4079 | ruby-src/test1.ruby,37 |
| 4080 | class A1,0 | 4080 | class A1,0 |
diff --git a/test/etags/ETAGS.good_6 b/test/etags/ETAGS.good_6 index 39522dbdb9b..2014283a89c 100644 --- a/test/etags/ETAGS.good_6 +++ b/test/etags/ETAGS.good_6 | |||
| @@ -4059,11 +4059,11 @@ class Configure(760,24879 | |||
| 4059 | ruby-src/test.rb,594 | 4059 | ruby-src/test.rb,594 |
| 4060 | module ModuleExample1,0 | 4060 | module ModuleExample1,0 |
| 4061 | class ClassExample2,21 | 4061 | class ClassExample2,21 |
| 4062 | def class_method3,44 | 4062 | def instance_method3,44 |
| 4063 | def ClassExample.singleton_class_method6,116 | 4063 | def ClassExample.class_method6,116 |
| 4064 | def class_method_exclamation!9,221 | 4064 | def instance_method_exclamation!9,221 |
| 4065 | def class_method_question?12,319 | 4065 | def instance_method_question?12,319 |
| 4066 | def class_method_equals=class_method_equals=15,411 | 4066 | def instance_method_equals=class_method_equals=15,411 |
| 4067 | def `(18,499 | 4067 | def `(18,499 |
| 4068 | def +(21,589 | 4068 | def +(21,589 |
| 4069 | def [](24,637 | 4069 | def [](24,637 |
| @@ -4073,8 +4073,8 @@ module ModuleExample1,0 | |||
| 4073 | def <=(<=36,869 | 4073 | def <=(<=36,869 |
| 4074 | def <=>(<=>39,940 | 4074 | def <=>(<=>39,940 |
| 4075 | def ===(===42,987 | 4075 | def ===(===42,987 |
| 4076 | def module_method46,1048 | 4076 | def module_instance_method46,1048 |
| 4077 | def ModuleExample.singleton_module_method49,1110 | 4077 | def ModuleExample.module_class_method49,1110 |
| 4078 | 4078 | ||
| 4079 | ruby-src/test1.ruby,37 | 4079 | ruby-src/test1.ruby,37 |
| 4080 | class A1,0 | 4080 | class A1,0 |
diff --git a/test/etags/ruby-src/test.rb b/test/etags/ruby-src/test.rb index 9254c5bffa9..adb2cb1d0bc 100644 --- a/test/etags/ruby-src/test.rb +++ b/test/etags/ruby-src/test.rb | |||
| @@ -1,19 +1,19 @@ | |||
| 1 | module ModuleExample | 1 | module ModuleExample |
| 2 | class ClassExample | 2 | class ClassExample |
| 3 | def class_method | 3 | def instance_method |
| 4 | puts "in class_method" | 4 | puts "in instane_method" |
| 5 | end | 5 | end |
| 6 | def ClassExample.singleton_class_method | 6 | def ClassExample.class_method |
| 7 | puts "in singleton_class_method" | 7 | puts "in class_method" |
| 8 | end | 8 | end |
| 9 | def class_method_exclamation! | 9 | def instance_method_exclamation! |
| 10 | puts "in class_method_exclamation!" | 10 | puts "in instance_method_exclamation!" |
| 11 | end | 11 | end |
| 12 | def class_method_question? | 12 | def instance_method_question? |
| 13 | puts "in class_method_question?" | 13 | puts "in instance_method_question?" |
| 14 | end | 14 | end |
| 15 | def class_method_equals= | 15 | def instance_method_equals= |
| 16 | puts "in class_method_equals=" | 16 | puts "in instance_method_equals=" |
| 17 | end | 17 | end |
| 18 | def `(command) | 18 | def `(command) |
| 19 | return "just testing a backquote override" | 19 | return "just testing a backquote override" |
| @@ -43,12 +43,16 @@ module ModuleExample | |||
| 43 | self == y | 43 | self == y |
| 44 | end | 44 | end |
| 45 | end | 45 | end |
| 46 | def module_method | 46 | def module_instance_method |
| 47 | puts "in module_method" | 47 | puts "in module_instance_method" |
| 48 | end | 48 | end |
| 49 | def ModuleExample.singleton_module_method | 49 | def ModuleExample.module_class_method |
| 50 | puts "in singleton_module_method" | 50 | puts "in module_class_method" |
| 51 | end | 51 | end |
| 52 | end | 52 | end |
| 53 | 53 | ||
| 54 | ModuleExample::ClassExample.singleton_class_method | 54 | ModuleExample::ClassExample.class_method |
| 55 | |||
| 56 | # Local Variables: | ||
| 57 | # ruby-indent-level: 4 | ||
| 58 | # End: | ||