From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: (cperl-mode) Problems with syntax highlighting after __DATA__ ! Date: Sat, 16 Oct 2010 07:20:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <70e70be1-3110-4136-97a0-dd8d923591de@28g2000yqm.googlegroups.com> References: <6dc535d1-ce05-449d-a3ff-d062f5e634d1@z28g2000vba.googlegroups.com> <55f6a9f1-fd98-4069-9bf8-8e3e550f36af@30g2000yqm.googlegroups.com> <5e32a127-1e53-4f9d-899f-6c1329a5b589@i5g2000yqe.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291894602 15757 80.91.229.12 (9 Dec 2010 11:36:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 11:36:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 12:36:38 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQenc-0006Dn-RW for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 12:36:37 +0100 Original-Received: from localhost ([127.0.0.1]:59155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQenb-000396-0x for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 06:36:35 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!28g2000yqm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 89.244.165.114 Original-X-Trace: posting.google.com 1287238846 8953 127.0.0.1 (16 Oct 2010 14:20:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 16 Oct 2010 14:20:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 28g2000yqm.googlegroups.com; posting-host=89.244.165.114; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:181817 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76993 Archived-At: Hi > Ilya wrote: > Sorry, not good enough for me. =A0If you have *specific* examples of > *short* stuff which causes a hanging, I may have a chance to try to > put some workarounds. As I said my case consists of 5000 lines of HTML-code. So a short example is not possible. I would greatly appreciate a possibility to switch of perl highlighting behind __DATA__. Some people put perl-code there most don't. IMHO some HTML causes the highlighter to go astray in very deep back- tracking recursion. > And BTW "hanging" means what? =A0One needs to press C-g, or what? As I said slowing down when scrolling, till the point of unresponsiveness and the need to kill emacs from shell. Of course I tried C-g and ESC ESC ESC, but it didn't help, and at the beginning there is a busy animation shown as mouse pointer. > Stefan wrote: > What happens if you use perl-mode instead of cperl-mode? perl-mode also tries to highlight behind __DATA__, and also slows down when scrolling sometimes showing a busy mouse pointer. But it doesn't really hang for more than a second! (which is no surprise since perl-mode does less highlighting than cperl-mode - perl has a very rich syntax, maybe the richest of all mainstream languages)