www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/03/03:35:43

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 3 Apr 2009 10:35:17 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: asciidoc-8.3.5-1
Message-ID: <20090403083517.GH12738@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <announce DOT 498855A5 DOT 8080102 AT byu DOT net> <20090402155313 DOT GB12738 AT calimero DOT vinschen DOT de> <49D50FA6 DOT 1070803 AT byu DOT net>
MIME-Version: 1.0
In-Reply-To: <49D50FA6.1070803@byu.net>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Apr  2 13:19, Eric Blake wrote:
> According to Corinna Vinschen on 4/2/2009 9:53 AM:
> > I then puzzled out that on the machine where vim is fast, the filetype
> > of the strace file was set to "", while on the incredible slow machine,
> > vim had set the filetype to "asciidoc".
> 
> Did you, per chance, name your strace with a .txt suffix?  If not, how did
> it match the vim file content detection?  Looking at
> /usr/share/vim/vimfiles/ftdetect/asciidoc_filetype.vim, I see:

Indeed, the strace files I was looking at had the .txt suffix.

> > " COMMENT OUT ONE OF THE TWO FOLLOWING COMMANDS
> > " The first sets asciidoc syntax highlighting on all .txt files, the second
> > " only existing files *.txt that appear to be AsciiDoc files.
> > 
> > au BufNewFile,BufRead *.txt,README,TODO,CHANGELOG,NOTES  setfiletype asciidoc
> > "au BufRead *.txt,README,TODO,CHANGELOG,NOTES call s:FTasciidoc()
> 
> Does switching the comment help?  I don't use vim, so I'm not really in a
> position to test this (I just bundle the vim bindings with asciidoc
> because they are available upstream, and my only personal use of asciidoc
> is indirectly as the git maintainer).  But if it helps, then I'll roll a
> - -2 with that comment swapped over.

Yes, it helps.  The strace files are not identified as asciidoc's
anymore.  The filetype stays empty.

> > - There seem to be a bug in one or more of the regular expressions in
> >   the asciidoc.vim syntax file.
> 
> Well, they are expecting to match asciidoc syntax, which strace does not.
>  But I can forward that concern upstream.

This would be helpful, perhaps.  When using this syntax description, on
our strace files (just because they happen to have a .txt suffix), vim
is really creeping along, taking 100% CPU for up to 10 seconds just to
scroll a single page.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019