]> code.delx.au - gnu-emacs/commit
Fix file-name recognition in 'etags'
authorEli Zaretskii <eliz@gnu.org>
Tue, 2 Feb 2016 18:01:33 +0000 (20:01 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 2 Feb 2016 18:01:33 +0000 (20:01 +0200)
commitf6213ce79981747b3cb2c8213710986b93999fe5
tree79eb99c5cbcb1e401935d58af902a1ce379782f8
parente42e662f26523ba0d10c41ab6deead85077c9f79
Fix file-name recognition in 'etags'

* lib-src/etags.c (get_language_from_filename): If FILE includes a
leading directory, compare only its basename to the known file
names in lang_names[].

* test/etags/Makefile (RBSRC): Adapt to recent test1.ruby
renaming.
* 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:
* test/etags/CTAGS.good: Adapt to changes in Ruby file names and
to the results in Makefile due to the above etags.c fix.
lib-src/etags.c
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
test/etags/Makefile