X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-IronPort-AV: E=Sophos;i="4.27,651,1204520400"; d="scan'208";a="20147979" Message-ID: <4856209F.60307@ptc.com> Date: Mon, 16 Jun 2008 01:13:19 -0700 From: Alex Shturm User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Problem with tags in vim 7.1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hello, I'm having a strange problem with tags in vim 7.1 that I've just installed. My Cygwin version is 1.5.25-14. I'm experimenting in directory c:/temp where I have a source file "test.c" and a tag file "tagfile" (see below). I also set environment variable EXINIT as "set tags=tagfile". File test.c : ------------------------ int my_function (int aaa) { } ------------------------ Depending on how the path to the source file is written in my tagfile, the command "vim -t my_function" executes differently : *** Case (1) tagfile: ------------------------ my_function $TESTDIR/test.c /^int my_function (int aaa)$/ ------------------------ Environment variable TESTDIR is defined as "c:/temp". Command "vim -t my_function" brings vim that reports: ------------------------ "/cygdrive/c/Temp/tes#" [New File] E434: Can't find tag pattern ------------------------ *** Case (2) tagfile: ------------------------ my_function c:/temp/test.c /^int my_function (int aaa)$/ ------------------------ Command "vim -t my_function" CRASHES vim (segmentation fault) .... *** Case (3) tagfile: ------------------------ my_function /cygdrive/c/temp/test.c /^int my_function (int aaa)$/ ------------------------ Only here the command "vim -t my_function" correctly loads test.c and finds the tag. Is it a known problem? Is there any cure for cases (1) and (2) ? Is there a workaround? Thank you, Alex -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/