Hari Krishna Dara wrote:

> I am observing that the taglist() function is not sensitive to the
> changes in 'tags' value. It also seems to cache the value of 'tags' as
> of the time the function is called for the first time. To reproduce the
> problem (you need to have patch 96 applied, otherwise there is another
> bug in 7.0GA that could mask the bug that the below is trying to show),
> 
> - create a directory with at least one file that ctags recognizes. Make
>   a copy of this directory.
> - Run ctags in both directories to create tags file. They will
>   essentially be identical.
> - Start vim/gvim and cd to one of the directories. Have 'tags' set to
>   "./tags".
> - Execute taglist() on a tag that you know exists, something like:
>     :echo taglist('main')
> - Now, cd into the other directory, and run the same command. You will
>   see that the tags are reported from the other directory.
> - Change 'tags' to the absolute path to the second directory and run the
>   echo command again. You will still observe that taglist() is using the
>   previous tags file.
> 
> Can anyone confirm that they can reproduce this?

Did you take into account that Vim uses "./tags" as the tags file
relative to the current file?  Try editing another file after the ":cd"
command.  Or use the value "tags", which means the tags file in the
current directory.

-- 
ERIC IDLE PLAYED: THE DEAD COLLECTOR, MR BINT (A VILLAGE NE'ER-DO -WELL VERY
                  KEEN ON BURNING WITCHES), SIR ROBIN, THE GUARD WHO DOESN'T
                  HICOUGH BUT TRIES TO GET THINGS STRAIGHT, CONCORDE (SIR
                  LAUNCELOT'S TRUSTY STEED), ROGER THE SHRUBBER (A SHRUBBER),
                  BROTHER MAYNARD
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to