aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2014-08-08 23:18:14 +0200
committerPeter Odding <peter@peterodding.com>2014-08-08 23:18:14 +0200
commitbfe2fed9189be40e729c27aba29544015882b83e (patch)
tree2946b8dcfbf19c8ae18b151951356fdc826a0ad5 /autoload
parent83e8cf33e0293707809d183f32d753edf5849033 (diff)
downloadvim-easytags-bfe2fed9189be40e729c27aba29544015882b83e.tar.gz
Make it easier to debug tag file selection
Diffstat (limited to 'autoload')
-rw-r--r--autoload/xolox/easytags.vim11
1 files changed, 10 insertions, 1 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index f450785..6dd44ef 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -1,6 +1,6 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: July 19, 2014
+" Last Change: August 8, 2014
" URL: http://peterodding.com/code/vim/easytags/
let g:xolox#easytags#version = '3.6.4'
@@ -448,15 +448,24 @@ function! xolox#easytags#get_tagsfile() " {{{2
let tagsfile = ''
endif
endif
+ if !empty(tagsfile)
+ call xolox#misc#msg#debug("easytags.vim %s: Selected dynamic tags file %s.", g:xolox#easytags#version, tagsfile)
+ endif
" Check if a file type specific tags file is useful?
let vim_file_type = xolox#easytags#filetypes#canonicalize(&filetype)
if empty(tagsfile) && !empty(g:easytags_by_filetype) && !empty(vim_file_type)
let directory = xolox#misc#path#absolute(g:easytags_by_filetype)
let tagsfile = xolox#misc#path#merge(directory, vim_file_type)
+ if !empty(tagsfile)
+ call xolox#misc#msg#debug("easytags.vim %s: Selected file type specific tags file %s.", g:xolox#easytags#version, tagsfile)
+ endif
endif
" Default to the global tags file?
if empty(tagsfile)
let tagsfile = expand(xolox#misc#option#get('easytags_file'))
+ if !empty(tagsfile)
+ call xolox#misc#msg#debug("easytags.vim %s: Selected global tags file %s.", g:xolox#easytags#version, tagsfile)
+ endif
endif
" If the tags file exists, make sure it is writable!
if filereadable(tagsfile) && filewritable(tagsfile) != 1