From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: Is this a bug in cperl mode Date: Mon, 10 Feb 2003 15:50:14 GMT Organization: Still searching... Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <841y2gv5zf.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1044892420 9088 80.91.224.249 (10 Feb 2003 15:53:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 15:53:40 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18iGFW-0002MH-00 for ; Mon, 10 Feb 2003 16:53:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18iGHZ-0004IN-00 for gnu-help-gnu-emacs@m.gmane.org; Mon, 10 Feb 2003 10:55:45 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!newspeer1.nwr.nac.net!news.astraweb.com!news-small.astraweb.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr13.news.prodigy.com.POSTED!cbca52ab!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:DH5zciWX/UjtfDR1FgpqWIjm5bE= Original-Lines: 51 Original-NNTP-Posting-Host: 63.202.235.21 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr13.news.prodigy.com 1044892213 ST000 63.202.235.21 (Mon, 10 Feb 2003 10:50:13 EST) Original-NNTP-Posting-Date: Mon, 10 Feb 2003 10:50:13 EST X-UserInfo1: [[OCR]GGU[RWRWTYBZH@_VDA[X_LPO@FLA]T]_MIJQR@EPIB_VUKAH_[MTX\IS[K[NGYJJFNOFZR_G[BUNTAOQLFE^TEHRPI]PZZRP_BMDSFQFL_]CBHXRWCMDCUZAZN@D_AKMNLEI]MWHCSXL^]NNC__CZFGSGHYYXWPFG@SCAVA]\FT\@B\RDGENSUQS^M Original-Xref: shelby.stanford.edu gnu.emacs.help:110025 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6530 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6530 kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes: > Harry Putnam writes: > >> I get several kinds of goofy behavior from cperl mode on this snippet >> of code. The syntax hylight breaks down on last section too. Makes >> cperl pretty useless for what its designed for. Maybe its local guff >> causing it but starting emacs -q -no-site-file doesn't seem to help. > > I could reproduce this with the cperl that comes with Emacs, but the > cperl from Ilya (I have 4.32, it seems) works. > > How about you check that and submit a bug report, suggesting to > upgrade the cperl in Emacs. (It seems that the cperl in Emacs is > quite old.) I'm running a recent cvs of emacs (GNU Emacs 21.3.50.1 ) checking C-h v cperl-version shows: cperl-version's value is "4.32" Version of IZ-supported CPerl package this file is based on. Defined in `cperl-mode'. Must be more than one version of 4.32 :) With the posted code in a cperl-mode buffer and running C-x h C-M \ I get: forward-sexp: Scan error: "Unbalanced parentheses", 169, 212 Switching to plain perl-mode and running the same commands produces error/warnings. Daniel writes: > such single occurences of 's' they're a nightmare in both variants. Seems like regular perl-mode deals with that. At least in this case. Can code be stolen or example drawn from it? Oh and can some thing be set so that if(some_test){ some_action } Isn't expanded into: if (some_test) { some_action } Or is the lack of space between `if and (', `) and {' part of the same problem?