From xemacs-m  Sun Jun 22 17:56:25 1997
Received: from mathserv.mps.ohio-state.edu (mathserv.mps.ohio-state.edu [128.146.111.31])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA20451
	for <xemacs-beta@xemacs.org>; Sun, 22 Jun 1997 17:56:24 -0500 (CDT)
Received: from monk.mps.ohio-state.edu (monk.mps.ohio-state.edu [128.146.111.52])
	by mathserv.mps.ohio-state.edu (8.8.5/8.8.5) with ESMTP id SAA28481;
	Sun, 22 Jun 1997 18:56:22 -0400 (EDT)
From: Ilya Zakharevich <ilya@math.ohio-state.edu>
Received: (from ilya@localhost)
	by monk.mps.ohio-state.edu (8.8.5/8.8.5) id SAA05235;
	Sun, 22 Jun 1997 18:56:21 -0400 (EDT)
Message-Id: <199706222256.SAA05235@monk.mps.ohio-state.edu>
Subject: Re: cperl-mode syntax table problem/fix?
To: aichner@ecf.teradyne.com (Adrian Aichner)
Date: Sun, 22 Jun 1997 18:56:20 -0400 (EDT)
Cc: mrb@Eng.Sun.COM (Martin Buchholz),
        xemacs-beta@xemacs.org (XEmacs Beta Mailing List),
        arius@informatik.uni-erlangen.de
In-Reply-To: <rxsbu4yhbiz.fsf@ecf.teradyne.com> from "Adrian Aichner" at Jun 22, 1997 06:01:40 PM
X-Mailer: ELM [version 2.5 PL0b1]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Adrian Aichner writes:
> Obviously the syntax table change broke font-locking for cperl-mode.
> 
> I have tried to patch cperl-mode.el by excluding leading and trailing
> context of _ from matches of font-lock-type-face and
> font-lock-other-type-face.

Thank you for your work.  My intention is to make CPerl work if user
wants to set _ to be a symbol-constituent (this will also cover broken
system defaults that XEmacs maintainers feel obliged to set ;-).
However, you address it from a wrong side, the solution should be to
ask font-lock to use "correct" symbol table for the language.

Please make this change conditional on the value of _ in the
syntax-table, so that most systems (on which _ will be
word-constituent) will not take performance penalty for this.

Note also that you used a very old copy of CPerl, please send your
patches wrt the latest version (on
	ftp://ftp.math.ohio-state.edu/pub/users/ilya/
).

Thanks,
Ilya

