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: Is this a bug in cperl mode Date: Mon, 10 Feb 2003 03:20:28 GMT Organization: Still searching... Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044847483 11299 80.91.224.249 (10 Feb 2003 03:24:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 03:24:43 +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 18i4Yk-0002w5-00 for ; Mon, 10 Feb 2003 04:24:42 +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 18i4ZZ-0005Ou-04 for gnu-help-gnu-emacs@m.gmane.org; Sun, 09 Feb 2003 22:25:33 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-peer.gip.net!news.gsl.net!gip.net!c03.atl99!rip!news.webusenet.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr21.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:mWr5fjOSOAk6ijqEQ0kHoZoTjII= Original-Lines: 30 Original-NNTP-Posting-Host: 63.202.235.21 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr21.news.prodigy.com 1044847228 ST000 63.202.235.21 (Sun, 09 Feb 2003 22:20:28 EST) Original-NNTP-Posting-Date: Sun, 09 Feb 2003 22:20:28 EST X-UserInfo1: Q[R_PJSCO@T]B^H]]RKB_UDAZZ\DPCPDLXUNNH\KMAVNDQUBLNTC@AWZWDXZXQ[K\FFSKCVM@F_N_DOBWVWG__LG@VVOIPLIGX\\BU_B@\P\PFX\B[APHTWAHDCKJF^NHD[YJAZMCY_CWG[SX\Y]^KC\HSZRWSWKGAY_PC[BQ[BXAS\F\\@DMTLFZFUE@\VL Original-Xref: shelby.stanford.edu gnu.emacs.help:110002 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:6507 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6507 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. And perl, even in strict mode, has no problem with it. emacs perl-mode doesn't complain either. In cperl-mode: Try C-x h C-M \ on this code or just navigate around in it, particularly at if($opt_s). #!/usr/local/bin/perl -w use strict; use vars qw($opt_d $opt_s); use Getopt::Std; my $optstr ="ds"; getopts($optstr); if($opt_d){ print "an -d was used\n"; } if($opt_s){ print "an -s was used\n"; }