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 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: <20090402155313 DOT GB12738 AT calimero DOT vinschen DOT de> <49D50FA6 DOT 1070803 AT byu DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: 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 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/